{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nimboweather-com/json-schema/nimboweather-com-status-answer-schema.json",
  "title": "StatusAnswer",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nimboweather-com-openapi.json#/components/schemas/StatusAnswer",
  "properties": {
    "time": {
      "type": "string",
      "title": "Time"
    },
    "status": {
      "type": "string",
      "enum": [
        "ok",
        "degraded",
        "stale"
      ],
      "title": "Status"
    },
    "sources": {
      "additionalProperties": {
        "$ref": "#/$defs/SourceState"
      },
      "type": "object",
      "title": "Sources",
      "description": "opera_dbzh, opera_rate, aemet_radar"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "time",
    "status",
    "sources"
  ],
  "$defs": {
    "SourceState": {
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "ok",
            "stale",
            "missing"
          ],
          "title": "Status"
        },
        "last_nominal_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Nominal Time"
        },
        "last_write_time": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Write Time"
        },
        "age_s": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Age S"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "status"
      ],
      "title": "SourceState"
    }
  }
}