{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/airthings/json-schema/airthings-sensors-response-schema.json",
  "title": "SensorsResponse",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/airthings-openapi.yaml#/components/schemas/SensorsResponse",
  "type": "object",
  "properties": {
    "serialNumber": {
      "type": "string"
    },
    "sensors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SensorResponse"
      }
    },
    "recorded": {
      "type": [
        "string",
        "null"
      ]
    },
    "batteryPercentage": {
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "$defs": {
    "SensorResponse": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "sensorType": {
          "type": "string"
        },
        "value": {
          "type": "number",
          "format": "double"
        },
        "unit": {
          "type": "string"
        }
      }
    }
  }
}