{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atisrelay-com/json-schema/atisrelay-com-nas-status-response-schema.json",
  "title": "NasStatusResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atisrelay-com-openapi.json#/components/schemas/NasStatusResponse",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "summary",
    "counts",
    "anomalies_by_kind",
    "anomalies_by_region",
    "tfrs",
    "tfrs_stale",
    "hurricanes",
    "severe_weather",
    "ground_stops",
    "ground_delay_programs"
  ],
  "properties": {
    "summary": {
      "nullable": true,
      "allOf": [
        {
          "$ref": "#/$defs/NasSummary"
        }
      ]
    },
    "counts": {
      "$ref": "#/$defs/NasStatusCounts"
    },
    "tfrs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tfr"
      }
    },
    "tfrs_stale": {
      "type": "boolean"
    },
    "hurricanes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Hurricane"
      }
    },
    "severe_weather": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SevereWeatherProduct"
      }
    },
    "anomalies_by_kind": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/NasAnomaly"
        }
      }
    },
    "anomalies_by_region": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/NasAnomaly"
        }
      }
    },
    "ground_stops": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TfmsProgram"
      }
    },
    "ground_delay_programs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TfmsProgram"
      }
    }
  },
  "$defs": {
    "Hurricane": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "classification": {
          "type": "string"
        },
        "intensity": {
          "type": "string"
        },
        "pressure": {
          "type": "string"
        },
        "lat": {
          "type": "number"
        },
        "lon": {
          "type": "number"
        },
        "track": {
          "type": "object",
          "additionalProperties": true
        },
        "cone": {
          "type": "object",
          "additionalProperties": true
        },
        "airports": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "regions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "observed_at": {
          "type": "string",
          "format": "date-time"
        },
        "official_source_url": {
          "$ref": "#/$defs/OfficialSourceUrl"
        }
      }
    },
    "NasAnomaly": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "id": {
          "type": "integer"
        },
        "kind": {
          "type": "string"
        },
        "severity": {
          "type": "string"
        },
        "headline": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "region": {
          "type": "string"
        },
        "regions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "airports": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "source_refs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NasAnomalySourceRef"
          }
        },
        "official_source_url": {
          "$ref": "#/$defs/OfficialSourceUrl"
        },
        "started_at": {
          "type": "string",
          "format": "date-time"
        },
        "last_seen_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "NasAnomalySourceRef": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "source": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "airport": {
          "type": "string"
        }
      }
    },
    "NasStatusCounts": {
      "type": "object",
      "required": [
        "anomalies",
        "tfrs",
        "ground_stops",
        "ground_delay_programs",
        "hurricanes"
      ],
      "properties": {
        "anomalies": {
          "type": "integer"
        },
        "tfrs": {
          "type": "integer"
        },
        "ground_stops": {
          "type": "integer"
        },
        "ground_delay_programs": {
          "type": "integer"
        },
        "hurricanes": {
          "type": "integer"
        }
      }
    },
    "NasSummary": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "text": {
          "type": "string"
        },
        "generated_at": {
          "type": "string",
          "format": "date-time"
        },
        "fingerprint": {
          "type": "string"
        },
        "summary_method": {
          "type": "string"
        },
        "official_source_url": {
          "$ref": "#/$defs/OfficialSourceUrl"
        }
      }
    },
    "OfficialSourceUrl": {
      "type": "string",
      "format": "uri"
    },
    "SevereWeatherProduct": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "source": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "headline": {
          "type": "string"
        },
        "severity": {
          "type": "string"
        },
        "event": {
          "type": "string"
        },
        "raw_text": {
          "type": "string"
        },
        "geometry": {
          "type": "object",
          "additionalProperties": true
        },
        "airports": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "regions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "onset_at": {
          "type": "string",
          "format": "date-time"
        },
        "ends_at": {
          "type": "string",
          "format": "date-time"
        },
        "issued_at": {
          "type": "string",
          "format": "date-time"
        },
        "official_source_url": {
          "$ref": "#/$defs/OfficialSourceUrl"
        }
      }
    },
    "TfmsProgram": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "airport": {
          "type": "string"
        },
        "fca": {
          "type": "string"
        },
        "ctop_id": {
          "type": "string"
        },
        "center": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "start": {
          "type": "string",
          "format": "date-time"
        },
        "end": {
          "type": "string",
          "format": "date-time"
        },
        "cause": {
          "type": "string"
        },
        "avg_delay": {
          "type": "number"
        },
        "max_delay": {
          "type": "number"
        },
        "delay_mode": {
          "type": "string"
        },
        "scope": {
          "type": "string"
        },
        "element_type": {
          "type": "string"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "official_source_url": {
          "$ref": "#/$defs/OfficialSourceUrl"
        }
      }
    },
    "Tfr": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "notam_id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "location": {
          "type": "string"
        },
        "raw_text": {
          "type": "string"
        },
        "geometry": {
          "type": "object",
          "additionalProperties": true
        },
        "airports": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "min_altitude_ft": {
          "type": "integer"
        },
        "max_altitude_ft": {
          "type": "integer"
        },
        "effective_at": {
          "type": "string",
          "format": "date-time"
        },
        "expires_at": {
          "type": "string",
          "format": "date-time"
        },
        "source_url": {
          "type": "string",
          "format": "uri"
        },
        "official_source_url": {
          "$ref": "#/$defs/OfficialSourceUrl"
        }
      }
    }
  }
}