Bugzilla – Attachment 134607 Details for
Bug 30674
x-koha-override should use collectionFormat: csv
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30674: x-koha-override should use collectionFormat: csv
Bug-30674-x-koha-override-should-use-collectionFor.patch (text/plain), 2.20 KB, created by
Martin Renvoize (ashimema)
on 2022-05-04 12:14:17 UTC
(
hide
)
Description:
Bug 30674: x-koha-override should use collectionFormat: csv
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-05-04 12:14:17 UTC
Size:
2.20 KB
patch
obsolete
>From 1bbfff32b34a97e5d134a1a9df7546a9421ef1ea Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 3 May 2022 15:04:54 -0300 >Subject: [PATCH] Bug 30674: x-koha-override should use collectionFormat: csv > >This patch makes this header parameter rely on the OpenAPI spec to >validate and document the available options. > >Right now the only place is in POST and PUT /holds. > >To test: >1. Run: > $ kshell > k$ prove t/db_dependent/api/v1/holds.t \ > t/db_dependent/api/v1/auth_authenticate_api_request.t >=> SUCCESS: Tests pass >2. Apply this patch >3. Repeat 1 >=> SUCCESS: Tests still pass! >4. Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > api/v1/swagger/paths/holds.yaml | 18 ++++++++++++++---- > 1 file changed, 14 insertions(+), 4 deletions(-) > >diff --git a/api/v1/swagger/paths/holds.yaml b/api/v1/swagger/paths/holds.yaml >index a598c7a90d..9641b69435 100644 >--- a/api/v1/swagger/paths/holds.yaml >+++ b/api/v1/swagger/paths/holds.yaml >@@ -180,10 +180,15 @@ > - pickup_library_id > additionalProperties: false > - name: x-koha-override >- description: "Comma-separated list of overrides (valid values: any)" > in: header >- type: string > required: false >+ description: Overrides list sent as a request header >+ type: array >+ items: >+ type: string >+ enum: >+ - any >+ collectionFormat: csv > consumes: > - application/json > produces: >@@ -561,10 +566,15 @@ > summary: Get valid pickup locations for hold > parameters: > - name: x-koha-override >- description: "Comma-separated list of overrides (valid values: any)" > in: header >- type: string > required: false >+ description: Overrides list sent as a request header >+ type: array >+ items: >+ type: string >+ enum: >+ - any >+ collectionFormat: csv > - $ref: "../swagger.yaml#/parameters/hold_id_pp" > - $ref: "../swagger.yaml#/parameters/match" > - $ref: "../swagger.yaml#/parameters/order_by" >-- >2.20.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 30674
:
134556
|
134563
| 134607