From 3ec544ffa4c3eb462a6f13a113ac995f279caae6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 19 Jun 2025 11:11:18 +0200 Subject: [PATCH] Bug 40179: Add maxLength to patron_category spec file Test plan: Apply the "tests" patch first prove xt/api.t => fail Apply this patch => pass --- api/v1/swagger/definitions/patron_category.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/v1/swagger/definitions/patron_category.yaml b/api/v1/swagger/definitions/patron_category.yaml index 7f2d4a3288c..da548a6980d 100644 --- a/api/v1/swagger/definitions/patron_category.yaml +++ b/api/v1/swagger/definitions/patron_category.yaml @@ -4,6 +4,7 @@ properties: patron_category_id: type: string description: Internal patron category identifier + maxLength: 10 name: type: - string @@ -56,9 +57,11 @@ properties: category_type: type: string description: Type of Koha patron (Adult, Child, Professional, Organizational, Statistical, Staff) + maxLength: 1 block_expired_patron_opac_actions: type: string description: Specific actions expired patrons of this category are blocked from performing. OPAC actions blocked based on the patron category take priority over this preference + maxLength: 128 default_privacy: type: string enum: @@ -68,6 +71,10 @@ properties: description: Default privacy setting for this patron category check_prev_checkout: type: string + enum: + - yes + - no + - inherit description: Produce a warning for this patron category if this item has previously been checked out to this patron if ''yes'', not if ''no'', defer to syspref setting if ''inherit''.' can_place_ill_in_opac: type: boolean -- 2.34.1