{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.github.io/aviationweather/json-schema/aviationweather-airmet-schema.json",
  "title": "AviationWeather AIRMET",
  "description": "Decoded AIRMET as returned by GET /api/data/airmet?format=json. AIRMETs are typically issued for Alaska and the legacy CONUS text product.",
  "type": "object",
  "properties": {
    "airmetId":      { "type": "integer" },
    "icaoId":        { "type": "string", "description": "Issuing center ICAO." },
    "issueTime":     { "type": "string" },
    "validTimeFrom": { "type": "integer" },
    "validTimeTo":   { "type": "integer" },
    "product":       { "type": "string", "enum": ["SIERRA","TANGO","ZULU"] },
    "hazard":        { "type": "string", "enum": ["IFR","MTN OBSC","TURB","ICE","FZLVL","SFC WIND"] },
    "rawAirmet":     { "type": "string" }
  }
}
