From 908d4f62adc255996dc425ef7798a1f10208ed0e 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=utf8 Content-Transfer-Encoding: 8bit Sponsored-by: Büchereizentrale Schleswig-Holstein Signed-off-by: LEBSimonsen Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- 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 0ca253c23b..0893dfdc24 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 f8fd060653..dee20853e8 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.39.5