Bugzilla – Attachment 183365 Details for
Bug 40176
Add maxLength to the item definition
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40176: Add maxLength to item spec file
Bug-40176-Add-maxLength-to-item-spec-file.patch (text/plain), 2.84 KB, created by
Jonathan Druart
on 2025-06-19 09:20:25 UTC
(
hide
)
Description:
Bug 40176: Add maxLength to item spec file
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-06-19 09:20:25 UTC
Size:
2.84 KB
patch
obsolete
>From 9b6afaa13df0c486b282b6c15748135c83b317aa Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 19 Jun 2025 11:10:53 +0200 >Subject: [PATCH] Bug 40176: Add maxLength to item spec file > >Test plan: >Apply the "tests" patch first > prove xt/api.t >=> fail >Apply this patch >=> pass >--- > api/v1/swagger/definitions/item.yaml | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > >diff --git a/api/v1/swagger/definitions/item.yaml b/api/v1/swagger/definitions/item.yaml >index fd1bbd11c93..f43c8ef1a88 100644 >--- a/api/v1/swagger/definitions/item.yaml >+++ b/api/v1/swagger/definitions/item.yaml >@@ -12,6 +12,7 @@ properties: > - string > - "null" > description: The item's barcode >+ maxLength: 20 > acquisition_date: > type: > - string >@@ -36,6 +37,7 @@ properties: > - string > - "null" > description: Internal library id for the library the item belongs to >+ maxLength: 10 > purchase_price: > type: > - number >@@ -103,11 +105,13 @@ properties: > - string > - "null" > description: Call number for this item >+ maxLength: 255 > coded_location_qualifier: > type: > - string > - "null" > description: Coded location qualifier >+ maxLength: 10 > checkouts_count: > type: > - integer >@@ -148,6 +152,7 @@ properties: > - string > - "null" > description: Library that is currently in possession item >+ maxLength: 10 > timestamp: > type: string > format: date-time >@@ -164,6 +169,7 @@ properties: > description: > Linked to the CART and PROC temporary locations feature, stores the > permanent shelving location >+ maxLength: 80 > checked_out_date: > type: > - string >@@ -177,16 +183,19 @@ properties: > - string > - "null" > description: Classification source used on this item >+ maxLength: 10 > call_number_sort: > type: > - string > - "null" > description: "?" >+ maxLength: 255 > collection_code: > type: > - string > - "null" > description: Authorized value for the collection code associated with this item >+ maxLength: 80 > materials_notes: > type: > - string >@@ -207,6 +216,7 @@ properties: > - string > - "null" > description: Itemtype defining the type for this item >+ maxLength: 10 > effective_item_type_id: > type: > - string >@@ -227,16 +237,19 @@ properties: > - string > - "null" > description: Copy number >+ maxLength: 32 > inventory_number: > type: > - string > - "null" > description: Inventory number >+ maxLength: 80 > new_status: > type: > - string > - "null" > description: "'new' value, whatever free-text information." >+ maxLength: 32 > exclude_from_local_holds_priority: > type: boolean > description: Exclude this item from local holds priority. >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40176
:
183364
| 183365