From 9ce8c4d87ae8c12ba64bc65a1e95bd59e6bee476 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 Signed-off-by: David Nind --- 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 0fc7967358..c4debe94b5 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.39.5