{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dynamical-org/json-schema/dynamical-org-analysis-batch-schema.json",
  "title": "AnalysisBatch",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dynamical-org-openapi.json#/components/schemas/AnalysisBatch",
  "properties": {
    "queries": {
      "items": {
        "$ref": "#/$defs/AnalysisQuery"
      },
      "type": "array",
      "maxItems": 10,
      "minItems": 1,
      "title": "Queries"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "queries"
  ],
  "$defs": {
    "AnalysisQuery": {
      "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"
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "title": "Starttime"
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "title": "Endtime"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "dataProductId",
        "location",
        "variables",
        "startTime",
        "endTime"
      ],
      "title": "AnalysisQuery"
    },
    "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"
    }
  }
}