{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nimboweather-com/json-schema/nimboweather-com-nowcast-answer-schema.json",
  "title": "NowcastAnswer",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nimboweather-com-openapi.json#/components/schemas/NowcastAnswer",
  "properties": {
    "lat": {
      "type": "number",
      "title": "Lat"
    },
    "lon": {
      "type": "number",
      "title": "Lon"
    },
    "issue_time": {
      "type": "string",
      "title": "Issue Time",
      "description": "ISO time (UTC) of the newest radar frame the forecast starts from"
    },
    "data_age_s": {
      "type": "integer",
      "title": "Data Age S",
      "description": "seconds between the issue time and now"
    },
    "stale": {
      "type": "boolean",
      "title": "Stale",
      "description": "true when the forecast is older than the stale threshold (one missed cycle)"
    },
    "notice": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Notice",
      "description": "a sentence while the European radar feed has been down for more than 30 min"
    },
    "coverage": {
      "type": "string",
      "enum": [
        "radar",
        "no_radar"
      ],
      "title": "Coverage",
      "description": "no_radar: inside the forecast area but without radar here; summary and values are null"
    },
    "radar_source": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "opera",
            "aemet"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Radar Source"
    },
    "summary": {
      "anyOf": [
        {
          "$ref": "#/$defs/Summary"
        },
        {
          "type": "null"
        }
      ]
    },
    "minutely": {
      "items": {
        "$ref": "#/$defs/MinutelyEntry"
      },
      "type": "array",
      "title": "Minutely"
    },
    "observed_now": {
      "anyOf": [
        {
          "$ref": "#/$defs/ObservedNow"
        },
        {
          "type": "null"
        }
      ]
    },
    "horizon_skill": {
      "items": {
        "$ref": "#/$defs/SkillAtLead"
      },
      "type": "array",
      "title": "Horizon Skill"
    },
    "horizon_skill_label": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Horizon Skill Label",
      "description": "where horizon_skill comes from"
    },
    "horizon_skill_seasons": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Horizon Skill Seasons"
    },
    "confidence_notes": {
      "items": {
        "$ref": "#/$defs/ConfidenceNote"
      },
      "type": "array",
      "title": "Confidence Notes"
    },
    "grid": {
      "type": "string",
      "title": "Grid",
      "description": "the forecast grid answering this point"
    },
    "mode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mode",
      "description": "the forecast's input: radar"
    },
    "attribution": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Attribution",
      "description": "the credit to show with the data on the Free plan"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "lat",
    "lon",
    "issue_time",
    "data_age_s",
    "stale",
    "notice",
    "coverage",
    "radar_source",
    "summary",
    "minutely",
    "observed_now",
    "horizon_skill",
    "horizon_skill_label",
    "confidence_notes",
    "grid",
    "attribution"
  ],
  "$defs": {
    "ConfidenceNote": {
      "properties": {
        "field": {
          "type": "string",
          "title": "Field"
        },
        "beyond_lead_min": {
          "type": "integer",
          "title": "Beyond Lead Min"
        },
        "note": {
          "type": "string",
          "title": "Note"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "field",
        "beyond_lead_min",
        "note"
      ],
      "title": "ConfidenceNote"
    },
    "MinutelyEntry": {
      "properties": {
        "time": {
          "type": "string",
          "title": "Time",
          "description": "ISO time (UTC); counted from the issue time, so the first entries can be past"
        },
        "precip_mm_h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Precip Mm H"
        },
        "precip_probability": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Precip Probability",
          "description": "P(rate >= 0.2 mm/h), 0-1"
        },
        "precip_probability_1mm_h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Precip Probability 1Mm H",
          "description": "P(rate >= 1 mm/h), 0-1"
        },
        "precip_probability_5mm_h": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Precip Probability 5Mm H",
          "description": "P(rate >= 5 mm/h), 0-1"
        },
        "precip_type": {
          "type": "string",
          "const": "rain",
          "title": "Precip Type",
          "default": "rain"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "time",
        "precip_mm_h",
        "precip_probability",
        "precip_probability_1mm_h",
        "precip_probability_5mm_h"
      ],
      "title": "MinutelyEntry",
      "description": "One entry per ``step`` minutes after the issue time. Values are null outside radar coverage."
    },
    "ObservedNow": {
      "properties": {
        "time": {
          "type": "string",
          "title": "Time"
        },
        "precip_mm_h": {
          "type": "number",
          "title": "Precip Mm H"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "time",
        "precip_mm_h"
      ],
      "title": "ObservedNow"
    },
    "SkillAtLead": {
      "properties": {
        "lead_min": {
          "type": "integer",
          "title": "Lead Min"
        },
        "csi_1mmh": {
          "type": "number",
          "title": "Csi 1Mmh",
          "description": "critical success index at 1 mm/h on the benchmark, 0-1 (1 = perfect)"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "lead_min",
        "csi_1mmh"
      ],
      "title": "SkillAtLead"
    },
    "Summary": {
      "properties": {
        "text": {
          "type": "string",
          "title": "Text"
        },
        "rain_now": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rain Now"
        },
        "rain_starts_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rain Starts At",
          "description": "ISO time (UTC) the first rain period starts"
        },
        "rain_ends_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rain Ends At",
          "description": "ISO time (UTC) the first rain period ends; null past the horizon"
        },
        "minutes_until_rain": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Minutes Until Rain",
          "description": "from the request time; 0 when it rains now"
        },
        "max_intensity": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "light",
                "moderate",
                "heavy",
                "violent"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Intensity",
          "description": "the first rain period's peak: light from 0.2 mm/h, moderate 2.5, heavy 10, violent 50"
        },
        "now_source": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "radar",
                "forecast"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Now Source"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "text"
      ],
      "title": "Summary",
      "description": "Null outside radar coverage. While ``stale`` only ``text`` is set."
    }
  }
}