{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/weatherofrecord-com/json-schema/weatherofrecord-com-county-storms-schema.json",
  "title": "CountyStorms",
  "description": "One published county's storm events of record, the same record its county page shows.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/weatherofrecord-com-openapi.json#/components/schemas/CountyStorms",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "county": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "page": {
      "type": "string",
      "format": "uri"
    },
    "data": {
      "type": "string",
      "format": "uri"
    },
    "window_start": {
      "type": "string",
      "format": "date"
    },
    "window_end": {
      "type": "string",
      "format": "date"
    },
    "currency_through": {
      "type": "string"
    },
    "generated_utc": {
      "type": "string"
    },
    "source_name": {
      "type": "string"
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string"
          },
          "revision": {
            "type": "string"
          }
        }
      }
    },
    "days": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "peril": {
                  "type": "string",
                  "enum": [
                    "hail",
                    "wind",
                    "tornado"
                  ]
                },
                "state": {
                  "type": "string"
                },
                "value_text": {
                  "type": "string"
                }
              },
              "required": [
                "peril",
                "state"
              ]
            }
          }
        }
      }
    },
    "license": {
      "type": "string",
      "format": "uri"
    },
    "attribution": {
      "type": "string"
    },
    "notice": {
      "type": "string"
    }
  },
  "required": [
    "name",
    "state",
    "county",
    "page",
    "data",
    "window_start",
    "window_end",
    "sources",
    "days",
    "license",
    "attribution",
    "notice"
  ]
}