{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bund-dev/json-schema/bund-dev-airquality-schema.json",
  "title": "airquality",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bund-dev-luftqualitaet-openapi.yml#/components/schemas/airquality",
  "type": "object",
  "properties": {
    "station id": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date start (CET)": {
            "type": "object",
            "properties": {
              "0": {
                "description": "Date of end of measuring in CET",
                "type": "string"
              },
              "1": {
                "description": "Airquality index for all components",
                "type": "integer",
                "minimum": 0,
                "maximum": 4
              },
              "2": {
                "description": "Flag if data is incomplete (not all components available)",
                "type": "integer",
                "minimum": 0,
                "maximum": 1
              },
              "3 and following": {
                "description": "Object for component",
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "0": {
                      "description": "Id of component",
                      "type": "integer"
                    },
                    "1": {
                      "description": "The value",
                      "type": "number"
                    },
                    "2": {
                      "description": "Airquality index of this component",
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 4
                    },
                    "3": {
                      "description": "Decimal representation of percent in index thresholds. 0.x is between index 0 and 1, 1.x is between index 1 and 2...",
                      "type": "string",
                      "format": "float",
                      "minimum": 0,
                      "maximum": 5
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}