Flight Itinerary Example
A descriptive, non-normative ODP example.
All examplesThis example shows how ODP can describe a time-sensitive travel Offering without adding airline-specific fields to the core protocol.
flight-offering.json illustrates:
-
a stable Offering envelope with a human-facing
web_url; the fixedget-offeringoperation and path-safeidlocate the machine representation; -
nested departure and arrival structures with timezone-aware scheduled times;
-
Service-owned carrier, flight, cabin, baggage, and refundability attributes; and
-
a
starting_atPrice Preview that supports early comparison without replacing the authoritative fare returned later; and -
an OpenAPI-described
quoteaction because traveler parameters, availability, fare, taxes, and conditions require a more complex operation than the compact action form.
flight-attributes.schema.json shows how the travel Service explains those attributes to an unfamiliar agent using JSON Schema types, constraints, titles, and descriptions. The schema is a descriptive example, not a normative ODP flight vocabulary.