{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faa/json-schema/faa-airport-status-schema.json",
  "title": "AirportStatus",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faa-faa-airport-status-service-api-openapi.yml#/components/schemas/AirportStatus",
  "required": [
    "city",
    "delay",
    "delayCount",
    "iata",
    "icao",
    "name",
    "state",
    "supportedAirport",
    "weather"
  ],
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "icao": {
      "type": "string"
    },
    "iata": {
      "type": "string"
    },
    "supportedAirport": {
      "type": "boolean"
    },
    "delay": {
      "type": "boolean",
      "default": false
    },
    "delayCount": {
      "type": "integer"
    },
    "status": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Status"
      }
    },
    "weather": {
      "$ref": "#/$defs/Weather"
    }
  },
  "$defs": {
    "Status": {
      "required": [
        "avgDelay",
        "closureBegin",
        "closureEnd",
        "endTime",
        "maxDelay",
        "minDelay",
        "reason",
        "trend",
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        },
        "avgDelay": {
          "type": "string"
        },
        "closureEnd": {
          "type": "string"
        },
        "closureBegin": {
          "type": "string"
        },
        "minDelay": {
          "type": "string"
        },
        "trend": {
          "type": "string"
        },
        "maxDelay": {
          "type": "string"
        },
        "endTime": {
          "type": "string"
        }
      }
    },
    "Weather": {
      "type": "object",
      "properties": {
        "content": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {}
          }
        }
      }
    }
  }
}