From f6512b7203e53ed3e020941166e9d17a6f47fa20 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 19 Jun 2025 11:11:01 +0200 Subject: [PATCH] Bug 40177: Add maxLength to library spec file Test plan: Apply the "tests" patch first prove xt/api.t => fail Apply this patch => pass --- api/v1/swagger/definitions/library.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/v1/swagger/definitions/library.yaml b/api/v1/swagger/definitions/library.yaml index 0fc79673580..c4debe94b5e 100644 --- a/api/v1/swagger/definitions/library.yaml +++ b/api/v1/swagger/definitions/library.yaml @@ -29,6 +29,7 @@ properties: - string - "null" description: the postal code of the library + maxLength: 25 city: type: - string @@ -84,6 +85,7 @@ properties: - string - "null" description: the IP address for your library or branch + maxLength: 15 notes: type: - string @@ -101,6 +103,7 @@ properties: description: MARC Organization Code, see http://www.loc.gov/marc/organizations/orgshome.html, when empty defaults to syspref MARCOrgCode + maxLength: 16 pickup_location: type: boolean description: If the library can act as a pickup location -- 2.34.1