{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus-solutions/refs/heads/main/json-structure/flight-offers-search-connection-restriction-structure.json", "name": "ConnectionRestriction", "description": "Restriction towards number of connections.", "type": "object", "properties": { "maxNumberOfConnections": { "description": "The maximal number of connections for each itinerary. Value can be 0, 1 or 2.", "type": "double", "example": 2 }, "nonStopPreferred": { "description": "When this option is requested, recommendations made of Non-Stop flights only are favoured by the search, on the whole itinerary, with a weight of 75%.", "type": "boolean", "example": false }, "airportChangeAllowed": { "description": "Allow to change airport during connection", "type": "boolean", "example": false }, "technicalStopsAllowed": { "description": "This option allows the single segment to have one or more intermediate stops (technical stops).", "type": "boolean", "example": true } } }