From acf889ce178e201a379e08ac2ad8bd1ffd49ddfd Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Wed, 23 Oct 2024 16:41:22 +0000 Subject: [PATCH] Bug 38222: Add cancellation reason to bookings patch definition; reformat bookings definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sponsored-by: Büchereizentrale Schleswig-Holstein Signed-off-by: LEBSimonsen Signed-off-by: Martin Renvoize --- api/v1/swagger/definitions/booking.yaml | 4 ++-- api/v1/swagger/definitions/booking_patch.yaml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/api/v1/swagger/definitions/booking.yaml b/api/v1/swagger/definitions/booking.yaml index 0ca253c23b5..0893dfdc24b 100644 --- a/api/v1/swagger/definitions/booking.yaml +++ b/api/v1/swagger/definitions/booking.yaml @@ -14,7 +14,7 @@ properties: description: Booking cancellation reason type: - string - - "null" + - 'null' creation_date: description: Creation date and time of this booking readOnly: true @@ -63,7 +63,7 @@ properties: description: Status of the booking type: - string - - "null" + - 'null' required: - biblio_id - item_id diff --git a/api/v1/swagger/definitions/booking_patch.yaml b/api/v1/swagger/definitions/booking_patch.yaml index f8fd060653d..dee20853e8a 100644 --- a/api/v1/swagger/definitions/booking_patch.yaml +++ b/api/v1/swagger/definitions/booking_patch.yaml @@ -8,6 +8,11 @@ properties: description: Internal booking identifier readOnly: true type: integer + cancellation_reason: + description: Booking cancellation reason + type: + - string + - 'null' creation_date: description: Creation date and time of this booking readOnly: true -- 2.47.0