{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thinair-co/json-schema/thinair-co-weather-response-schema.json",
  "title": "WeatherResponse",
  "description": "Pass-through of the typed WeatherResult. Field set varies with include_* flags.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thinair-co-conditions-api-openapi.yml#/components/schemas/WeatherResponse",
  "type": "object",
  "properties": {
    "location": {
      "type": "object",
      "properties": {
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        },
        "label": {
          "type": "string"
        }
      },
      "required": [
        "lat",
        "lon"
      ]
    },
    "units": {
      "type": "string",
      "enum": [
        "imperial",
        "metric"
      ]
    },
    "current": {
      "type": "object",
      "additionalProperties": {}
    },
    "forecast": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "forecast_days": {
      "type": "number"
    },
    "alerts": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "alerts_error": {
      "type": "string"
    },
    "minutely_precipitation": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "minutely_error": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "meta": {
      "type": "object",
      "properties": {
        "upstream_ms": {
          "type": "number"
        },
        "feature_count": {
          "type": "number"
        },
        "cacheHit": {
          "type": "boolean"
        }
      },
      "required": [
        "upstream_ms",
        "feature_count"
      ]
    },
    "upstream_error": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "location",
    "units",
    "current",
    "source",
    "meta"
  ]
}