From f83741256407e80b94b27fb74ce75606aa36232a Mon Sep 17 00:00:00 2001 From: Kinga Mrugala Date: Mon, 5 Oct 2026 11:54:58 +0200 Subject: [PATCH] SPTECH-236: Restore booking_customer_accommodation as deprecated The API still returns it alongside booking_pick_up_location; removing it broke partners generating strict clients from the spec. Co-Authored-By: Claude Opus 5.5 --- spec/components/schema/bookings.yaml | 11 +++++++++++ spec/components/schema/option.yaml | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/spec/components/schema/bookings.yaml b/spec/components/schema/bookings.yaml index c01e161..2f162c8 100644 --- a/spec/components/schema/bookings.yaml +++ b/spec/components/schema/bookings.yaml @@ -377,6 +377,17 @@ components: description: The questions at booking level that need to be answered for this booking. type: object properties: + booking_customer_accommodation: + type: object + description: Deprecated. Use `booking_pick_up_location` instead. + required: + - value + deprecated: true + properties: + value: + type: string + description: Booking accommodation / hotel value. + example: Hilton Miami Downtown hotel booking_pick_up_location: type: object required: diff --git a/spec/components/schema/option.yaml b/spec/components/schema/option.yaml index 4784e2a..52ccd0e 100644 --- a/spec/components/schema/option.yaml +++ b/spec/components/schema/option.yaml @@ -92,10 +92,13 @@ components: properties: question: type: string - description: Name of the question. + description: | + Name of the question. `booking_customer_accommodation` is deprecated: it is always returned + together with `booking_pick_up_location`, which should be answered instead. enum: [ booking_child_safety_seat, booking_cruise_details, + booking_customer_accommodation, booking_pick_up_location, booking_drop_off_address, booking_flight_details,