{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-airport-convert-schema.json",
  "title": "AirportConvert",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-airports-api-openapi.yml#/components/schemas/AirportConvert",
  "type": "object",
  "properties": {
    "icao": {
      "type": "string",
      "description": "International Civil Aviation Organization (ICAO) 4-character airport code."
    },
    "iata": {
      "type": "string",
      "description": "International Air Transport Association (IATA) 3-character airport code."
    },
    "ident": {
      "type": "string",
      "description": "Universal airport identifier. Equals the ICAO code where one exists, otherwise a local or regional code."
    },
    "name": {
      "type": "string",
      "description": "Airport name."
    },
    "city": {
      "type": "string",
      "description": "Airport city."
    },
    "region": {
      "type": "string",
      "description": "Administrative region such as state or province within a country."
    },
    "region_code": {
      "type": "string",
      "description": "ISO 3166-2 region code (e.g. US-CA)."
    },
    "country": {
      "type": "string",
      "description": "2-letter ISO country code."
    },
    "country_name": {
      "type": "string",
      "description": "Full country name."
    },
    "continent": {
      "type": "string",
      "enum": [
        "AF",
        "AN",
        "AS",
        "EU",
        "NA",
        "OC",
        "SA"
      ],
      "description": "Continent code (AF, AN, AS, EU, NA, OC, SA)."
    },
    "elevation_ft": {
      "type": "integer",
      "description": "Airport elevation in feet."
    },
    "elevation_m": {
      "type": "number",
      "format": "double",
      "description": "Airport elevation in meters."
    },
    "latitude": {
      "type": "number",
      "format": "double",
      "description": "Latitude of the airport."
    },
    "longitude": {
      "type": "number",
      "format": "double",
      "description": "Longitude of the airport."
    },
    "timezone": {
      "type": "string",
      "description": "Airport timezone."
    },
    "type": {
      "type": "string",
      "enum": [
        "large_airport",
        "medium_airport",
        "small_airport",
        "heliport",
        "seaplane_base",
        "balloonport",
        "closed"
      ],
      "description": "Facility type: large_airport, medium_airport, small_airport, heliport, seaplane_base, balloonport, or closed."
    },
    "size": {
      "type": "string",
      "description": "Airport size.",
      "enum": [
        "large",
        "medium",
        "small"
      ]
    },
    "scheduled_service": {
      "type": "boolean",
      "description": "Whether the airport has scheduled airline service."
    },
    "is_closed": {
      "type": "boolean",
      "description": "Whether the facility is permanently closed."
    },
    "gps_code": {
      "type": "string",
      "description": "GPS/navigation database code."
    },
    "local_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "Local/national airport code."
    }
  }
}