{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/latitude-so/json-schema/latitude-so-insert-dataset-rows-body-schema.json",
  "title": "InsertDatasetRowsBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/latitude-so-datasets-api-openapi.yml#/components/schemas/InsertDatasetRowsBody",
  "type": "object",
  "properties": {
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Optional client-supplied row id. Generated when omitted."
          },
          "input": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "array",
                "items": {
                  "nullable": true
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "nullable": true
                }
              },
              {
                "nullable": true
              }
            ],
            "description": "Row input cell."
          },
          "output": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "array",
                "items": {
                  "nullable": true
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "nullable": true
                }
              },
              {
                "nullable": true
              }
            ],
            "description": "Row output cell."
          },
          "expectedOutput": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "array",
                "items": {
                  "nullable": true
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "nullable": true
                }
              },
              {
                "nullable": true
              }
            ],
            "description": "Correct answer for this row. Filled in by curators; usually distinct from `output`."
          },
          "metadata": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "array",
                "items": {
                  "nullable": true
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "nullable": true
                }
              },
              {
                "nullable": true
              }
            ],
            "description": "Row metadata cell."
          },
          "custom": {
            "type": "object",
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "array",
                  "items": {
                    "nullable": true
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": {
                    "nullable": true
                  }
                },
                {
                  "nullable": true
                }
              ]
            },
            "description": "Custom column values keyed by column identifier. Removed or unknown columns are rejected."
          }
        },
        "required": [
          "input"
        ]
      },
      "minItems": 1,
      "description": "Rows to insert."
    }
  },
  "required": [
    "rows"
  ]
}