From 5c25489029e4969f30c0253111ff73433b36a627 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 2 Feb 2022 09:12:40 -0300 Subject: [PATCH] Bug 29975: Add missing patron_expiration_date attribute to hold spec On bug 21729 a new attribute was added to the holds objects, but we forgot to add it to the spec. This broke the holds routes. To test: 1. Run: $ kshell k$ prove t/db_dependent/api/v1/holds.t => FAIL: Tests fail, boo. 2. Apply this patch 3. Repeat 1 => SUCCESS: Tests pass! 4. Sign off :-D Signed-off-by: Tomas Cohen Arazi --- api/v1/swagger/definitions/hold.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/v1/swagger/definitions/hold.yaml b/api/v1/swagger/definitions/hold.yaml index 1ca8114cf3..13d9119f89 100644 --- a/api/v1/swagger/definitions/hold.yaml +++ b/api/v1/swagger/definitions/hold.yaml @@ -74,6 +74,12 @@ properties: - "null" format: date description: The date the hold expires + patron_expiration_date: + type: + - string + - "null" + format: date + description: The date the patron requested the hold expires lowest_priority: type: boolean description: Controls if the hold is given the lowest priority on the queue -- 2.32.0