Bug 40176

Summary: Add maxLength to the item definition
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: REST APIAssignee: Jonathan Druart <jonathan.druart>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: tomascohen
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 40175, 40177    
Attachments: Bug 40176: Add tests
Bug 40176: Add maxLength to item spec file

Description Jonathan Druart 2025-06-18 21:18:43 UTC

    
Comment 1 Jonathan Druart 2025-06-19 09:20:23 UTC
Created attachment 183364 [details] [review]
Bug 40176: Add tests

This patch adds a new subtest to xt/api.t
It ensures that maxLength will appear in the rest api spec file when
there is a size constraint at the DB level
Comment 2 Jonathan Druart 2025-06-19 09:20:25 UTC
Created attachment 183365 [details] [review]
Bug 40176: Add maxLength to item spec file

Test plan:
Apply the "tests" patch first
  prove xt/api.t
=> fail
Apply this patch
=> pass