From 07499dd99404e2d7302bf72b69a3f3bc868e9222 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 7 May 2025 09:37:49 +0100 Subject: [PATCH] Bug 39835: (follow-up) Fix API specs to check for boolean --- api/v1/swagger/definitions/item.yaml | 12 ++++++------ api/v1/swagger/definitions/patron.yaml | 2 +- api/v1/swagger/definitions/patron_category.yaml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/api/v1/swagger/definitions/item.yaml b/api/v1/swagger/definitions/item.yaml index b254eb2dc34..fdae8c49eed 100644 --- a/api/v1/swagger/definitions/item.yaml +++ b/api/v1/swagger/definitions/item.yaml @@ -65,13 +65,13 @@ properties: format: date-time description: The date the item barcode was last scanned not_for_loan_status: - type: integer + type: boolean description: Authorized value defining why this item is not for loan effective_not_for_loan_status: type: integer description: Authorized value defining why this item is not for not_for_loan_status damaged_status: - type: integer + type: boolean description: Authorized value defining this item as damaged damaged_date: type: @@ -79,7 +79,7 @@ properties: - "null" description: The date and time an item was last marked as damaged, NULL if not damaged lost_status: - type: integer + type: boolean description: Authorized value defining this item as lost lost_date: type: @@ -88,7 +88,7 @@ properties: format: date-time description: The date and time an item was last marked as lost, NULL if not lost withdrawn: - type: integer + type: boolean description: Authorized value defining this item as withdrawn withdrawn_date: type: @@ -130,7 +130,7 @@ properties: description: Number of times this item has been placed on hold/reserved restricted_status: type: - - integer + - boolean - "null" description: Authorized value defining use restrictions for this item public_notes: @@ -194,7 +194,7 @@ properties: description: Materials specified shelving_control_number: type: - - number + - boolean - "null" description: Shelving control number uri: diff --git a/api/v1/swagger/definitions/patron.yaml b/api/v1/swagger/definitions/patron.yaml index 4adf5dcd534..4b61ae2d463 100644 --- a/api/v1/swagger/definitions/patron.yaml +++ b/api/v1/swagger/definitions/patron.yaml @@ -320,7 +320,7 @@ properties: type: integer description: patron's privacy settings related to their checkout history privacy_guarantor_checkouts: - type: integer + type: boolean description: controls if relatives can see this patron's checkouts privacy_guarantor_fines: type: boolean diff --git a/api/v1/swagger/definitions/patron_category.yaml b/api/v1/swagger/definitions/patron_category.yaml index 67235817840..072b805e668 100644 --- a/api/v1/swagger/definitions/patron_category.yaml +++ b/api/v1/swagger/definitions/patron_category.yaml @@ -32,7 +32,7 @@ properties: description: Age limit for the patron lower_age_limit: type: - - number + - boolean - "null" description: The minimum age required for the patron category enrolment_fee: -- 2.48.1