{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atisrelay-com/json-schema/atisrelay-com-airport-schema.json",
  "title": "Airport",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atisrelay-com-openapi.json#/components/schemas/Airport",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "icao": {
      "type": "string"
    },
    "iata": {
      "type": "string"
    },
    "faa_loc_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "county": {
      "type": "string"
    },
    "state_code": {
      "type": "string"
    },
    "state_name": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "latitude": {
      "type": "number"
    },
    "longitude": {
      "type": "number"
    },
    "elevation": {
      "type": "number"
    },
    "mag_variation": {
      "type": "string"
    },
    "traffic_pattern_alt": {
      "type": "integer"
    },
    "facility_type": {
      "type": "string"
    },
    "use_type": {
      "type": "string"
    },
    "ctaf": {
      "type": "string"
    },
    "unicom": {
      "type": "string"
    },
    "atct": {
      "type": "boolean"
    },
    "fuel_types": {
      "type": "string"
    },
    "sectional": {
      "type": "string"
    },
    "artcc_id": {
      "type": "string"
    },
    "artcc_name": {
      "type": "string"
    },
    "location": {
      "$ref": "#/$defs/AirportLocation"
    },
    "runways": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StructuredRunway"
      }
    },
    "frequencies": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StructuredFrequency"
      }
    },
    "remarks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StructuredRemark"
      }
    }
  },
  "$defs": {
    "AirportLocation": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string"
        },
        "county": {
          "type": "string"
        },
        "state_code": {
          "type": "string"
        },
        "state_name": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        }
      }
    },
    "StructuredFrequency": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "frequency": {
          "type": "string"
        },
        "fac_type": {
          "type": "string"
        },
        "twr_comm_call": {
          "type": "string"
        },
        "remarks": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        }
      }
    },
    "StructuredRemark": {
      "type": "object",
      "properties": {
        "element": {
          "type": "string"
        },
        "tab_name": {
          "type": "string"
        },
        "remark": {
          "type": "string"
        },
        "effective_date": {
          "type": "string"
        }
      }
    },
    "StructuredRunway": {
      "type": "object",
      "properties": {
        "rwy_id": {
          "type": "string"
        },
        "length_ft": {
          "type": "integer"
        },
        "width_ft": {
          "type": "integer"
        },
        "surface": {
          "type": "string"
        },
        "condition": {
          "type": "string"
        },
        "lighting": {
          "type": "string"
        },
        "treatment": {
          "type": "string"
        }
      }
    }
  }
}