Bug 40176 - Add maxLength to the item definition
Summary: Add maxLength to the item definition
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: REST API (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 40175 40177
  Show dependency treegraph
 
Reported: 2025-06-18 21:18 UTC by Jonathan Druart
Modified: 2025-06-19 10:48 UTC (History)
1 user (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 40176: Add tests (2.90 KB, patch)
2025-06-19 09:20 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 40176: Add maxLength to item spec file (2.84 KB, patch)
2025-06-19 09:20 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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