From abf2d09b56e0844d4382b314a3f23bb1f780b347 Mon Sep 17 00:00:00 2001 From: Phil Sturgeon <67381+philsturgeon@users.noreply.github.com> Date: Mon, 11 Mar 2024 16:09:21 +0000 Subject: [PATCH] fix booking link and remove discriminator --- openapi.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 7bdefad..9e9eb73 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -323,6 +323,7 @@ paths: - properties: links: $ref: '#/components/schemas/Links-Self' + example: id: efdbb9d1-02c2-4bc3-afb7-6788d8782b1e trip_id: efdbb9d1-02c2-4bc3-afb7-6788d8782b1e @@ -494,7 +495,7 @@ paths: content: application/json: schema: - allOf: + allOf: - $ref: '#/components/schemas/BookingPayment' - properties: links: @@ -558,7 +559,7 @@ webhooks: content: application/json: schema: - allOf: + allOf: - $ref: '#/components/schemas/Booking' - properties: links: @@ -890,8 +891,6 @@ components: - account_type - bank_name - country - discriminator: - propertyName: object status: description: The status of the payment, one of `pending`, `succeeded`, or `failed`. type: string @@ -907,7 +906,7 @@ components: type: string format: uri examples: - - https://api.example.com/bookings/123 + - https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb headers: RateLimit: description: |