{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AirportDistanceTimeContract",
  "title": "AirportDistanceTimeContract",
  "required": [
    "approxFlightTime",
    "from",
    "greatCircleDistance",
    "to"
  ],
  "type": "object",
  "properties": {
    "from": {
      "$ref": "#/components/schemas/ListingAirportContract"
    },
    "to": {
      "$ref": "#/components/schemas/ListingAirportContract"
    },
    "greatCircleDistance": {
      "$ref": "#/components/schemas/Distance"
    },
    "approxFlightTime": {
      "type": "string",
      "description": "Approximate flight time based on re-calculation of great circle distance\r\nagainst statistical duration average of multiple flights covered similar\r\ndistance before.",
      "format": "date-span"
    }
  },
  "additionalProperties": false,
  "description": "Contract containing information on distance and approximate flight time\r\nbetween specified airports"
}