{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dynamical-org/json-schema/dynamical-org-forecast-batch-schema.json",
  "title": "ForecastBatch",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dynamical-org-openapi.json#/components/schemas/ForecastBatch",
  "properties": {
    "queries": {
      "items": {
        "$ref": "#/$defs/ForecastQuery"
      },
      "type": "array",
      "maxItems": 10,
      "minItems": 1,
      "title": "Queries"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "queries"
  ],
  "$defs": {
    "ForecastQuery": {
      "properties": {
        "queryId": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 128,
              "minLength": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Queryid"
        },
        "dataProductId": {
          "type": "string",
          "minLength": 1,
          "title": "Dataproductid"
        },
        "location": {
          "$ref": "#/$defs/Location"
        },
        "variables": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 25,
          "minItems": 1,
          "title": "Variables"
        },
        "initTime": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "string",
              "const": "latest"
            },
            {
              "type": "null"
            }
          ],
          "title": "Inittime"
        },
        "initTimesAfter": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Inittimesafter"
        },
        "initTimesBefore": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Inittimesbefore"
        },
        "validTimeStart": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Validtimestart"
        },
        "validTimeEnd": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Validtimeend"
        },
        "maxLeadTimeHours": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Maxleadtimehours"
        },
        "representation": {
          "type": "string",
          "enum": [
            "auto",
            "requested"
          ],
          "title": "Representation",
          "default": "auto"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "dataProductId",
        "location",
        "variables"
      ],
      "title": "ForecastQuery"
    },
    "Location": {
      "properties": {
        "latitude": {
          "type": "number",
          "maximum": 90.0,
          "minimum": -90.0,
          "title": "Latitude"
        },
        "longitude": {
          "type": "number",
          "maximum": 180.0,
          "minimum": -180.0,
          "title": "Longitude"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "latitude",
        "longitude"
      ],
      "title": "Location"
    }
  }
}