{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://airlabs.co/json-schema/schedule",
  "title": "Schedule",
  "description": "Airport departure/arrival schedule record",
  "type": "object",
  "properties": {
    "airline_iata": { "type": "string", "description": "Airline IATA code" },
    "airline_icao": { "type": "string", "description": "Airline ICAO code" },
    "flight_iata": { "type": "string", "description": "Flight IATA code" },
    "flight_icao": { "type": "string", "description": "Flight ICAO code" },
    "flight_number": { "type": "string", "description": "Flight number" },
    "dep_iata": { "type": "string", "description": "Departure airport IATA code" },
    "dep_icao": { "type": "string", "description": "Departure airport ICAO code" },
    "dep_terminal": { "type": "string", "description": "Departure terminal" },
    "dep_gate": { "type": "string", "description": "Departure gate" },
    "dep_time": { "type": "string", "description": "Scheduled departure time (local)" },
    "dep_time_utc": { "type": "string", "description": "Scheduled departure time (UTC)" },
    "dep_estimated": { "type": "string", "description": "Estimated departure time (local)" },
    "dep_estimated_utc": { "type": "string", "description": "Estimated departure time (UTC)" },
    "dep_actual": { "type": "string", "description": "Actual departure time (local)" },
    "dep_actual_utc": { "type": "string", "description": "Actual departure time (UTC)" },
    "arr_iata": { "type": "string", "description": "Arrival airport IATA code" },
    "arr_icao": { "type": "string", "description": "Arrival airport ICAO code" },
    "arr_terminal": { "type": "string", "description": "Arrival terminal" },
    "arr_gate": { "type": "string", "description": "Arrival gate" },
    "arr_baggage": { "type": "string", "description": "Baggage belt / carousel" },
    "arr_time": { "type": "string", "description": "Scheduled arrival time (local)" },
    "arr_time_utc": { "type": "string", "description": "Scheduled arrival time (UTC)" },
    "arr_estimated": { "type": "string", "description": "Estimated arrival time (local)" },
    "arr_estimated_utc": { "type": "string", "description": "Estimated arrival time (UTC)" },
    "arr_actual": { "type": "string", "description": "Actual arrival time (local)" },
    "arr_actual_utc": { "type": "string", "description": "Actual arrival time (UTC)" },
    "cs_airline_iata": { "type": "string", "description": "Codeshare airline IATA code" },
    "cs_flight_iata": { "type": "string", "description": "Codeshare flight IATA code" },
    "cs_flight_number": { "type": "string", "description": "Codeshare flight number" },
    "status": { "type": "string", "description": "Flight status" },
    "duration": { "type": "integer", "description": "Scheduled duration in minutes" },
    "delayed": { "type": "integer", "description": "Delay in minutes" },
    "dep_delayed": { "type": "integer", "description": "Departure delay in minutes" },
    "arr_delayed": { "type": "integer", "description": "Arrival delay in minutes" }
  }
}
