{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-schema/on-demand-flight-status-segment-schema.json", "title": "Segment", "description": "Segment schema from On-Demand Flight Status", "properties": { "boardPointIataCode": { "description": "3-letter IATA code of the departure airport. e.g. CDG", "pattern": "[a-zA-Z]{3}", "type": "string", "example": "LHR" }, "offPointIataCode": { "description": "3-letter IATA code of the arrival airport. e.g. AMS", "pattern": "[a-zA-Z]{3}", "type": "string", "example": "BKK" }, "scheduledSegmentDuration": { "type": "string", "description": "duration of the segment following standard [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations)", "example": "PT14H50M" }, "partnership": { "properties": { "operatingFlight": { "properties": { "carrierCode": { "description": "2 to 3-character IATA code of the carrier. e.g. 6X", "type": "string", "example": "AF" }, "flightNumber": { "description": "1 to 4-digit number of the flight e.g. 4537", "type": "integer", "format": "int64", "example": 1 }, "operationalSuffix": { "description": "1-letter operational suffix of the flight e.g. A", "type": "string", "example": "string-value" } } } } } }, "type": "object" }