{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swathapi-com/json-schema/swathapi-com-storm-swath-schema.json",
  "title": "StormSwath",
  "description": "One storm with its damage-swath summary",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/swathapi-com-openapi.json#/components/schemas/StormSwath",
  "type": "object",
  "properties": {
    "storm_id": {
      "type": "string",
      "description": "Storm id (sw_...)"
    },
    "type": {
      "type": "string",
      "enum": [
        "hail",
        "wind"
      ]
    },
    "started_at": {
      "type": "string",
      "format": "date-time"
    },
    "last_seen_at": {
      "type": "string",
      "format": "date-time"
    },
    "verified_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When radar verification confirmed the swath"
    },
    "status": {
      "type": "string",
      "description": "e.g. active"
    },
    "swath_id": {
      "type": "string",
      "description": "Swath id (swath_...)"
    },
    "mesh_max_in": {
      "type": [
        "number",
        "null"
      ],
      "description": "Max radar-estimated hail size in the swath, inches"
    },
    "mesh_mean_in": {
      "type": [
        "number",
        "null"
      ],
      "description": "Mean radar-estimated hail size, inches"
    },
    "wind_max_mph": {
      "type": [
        "number",
        "null"
      ],
      "description": "Max wind speed, mph (wind storms)"
    },
    "area_km2": {
      "type": [
        "number",
        "null"
      ],
      "description": "Swath footprint area, square km"
    }
  }
}