Bugzilla – Attachment 121427 Details for
Bug 28461
Specify only one tag per route
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28461: Specify only one tag per route
Bug-28461-Specify-only-one-tag-per-route.patch (text/plain), 6.15 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-05-26 12:50:59 UTC
(
hide
)
Description:
Bug 28461: Specify only one tag per route
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-05-26 12:50:59 UTC
Size:
6.15 KB
patch
obsolete
>From 414fcfceb379652fb6394971ef2deba71132621b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 26 May 2021 14:30:00 +0200 >Subject: [PATCH] Bug 28461: Specify only one tag per route > >Or the route will be misplaced when generated by redoc > >git grep tags api|grep '",' > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > api/v1/swagger/paths/acquisitions_funds.json | 2 +- > api/v1/swagger/paths/acquisitions_vendors.json | 10 +++++----- > api/v1/swagger/paths/cash_registers.json | 4 ++-- > api/v1/swagger/paths/checkouts.json | 8 ++++---- > api/v1/swagger/paths/clubs.json | 2 +- > api/v1/swagger/paths/holds.json | 4 ++-- > 6 files changed, 15 insertions(+), 15 deletions(-) > >diff --git a/api/v1/swagger/paths/acquisitions_funds.json b/api/v1/swagger/paths/acquisitions_funds.json >index 1b0ebce147..31a599ac32 100644 >--- a/api/v1/swagger/paths/acquisitions_funds.json >+++ b/api/v1/swagger/paths/acquisitions_funds.json >@@ -3,7 +3,7 @@ > "get": { > "x-mojo-to": "Acquisitions::Funds#list", > "operationId": "listFunds", >- "tags": ["acquisitions","funds"], >+ "tags": ["funds"], > "produces": [ > "application/json" > ], >diff --git a/api/v1/swagger/paths/acquisitions_vendors.json b/api/v1/swagger/paths/acquisitions_vendors.json >index 2e1eb88107..fd76909cf4 100644 >--- a/api/v1/swagger/paths/acquisitions_vendors.json >+++ b/api/v1/swagger/paths/acquisitions_vendors.json >@@ -3,7 +3,7 @@ > "get": { > "x-mojo-to": "Acquisitions::Vendors#list", > "operationId": "listVendors", >- "tags": ["acquisitions","vendors"], >+ "tags": ["vendors"], > "produces": [ > "application/json" > ], >@@ -78,7 +78,7 @@ > "post": { > "x-mojo-to": "Acquisitions::Vendors#add", > "operationId": "addVendor", >- "tags": ["acquisitions","vendors"], >+ "tags": ["vendors"], > "parameters": [{ > "name": "body", > "in": "body", >@@ -140,7 +140,7 @@ > "get": { > "x-mojo-to": "Acquisitions::Vendors#get", > "operationId": "getVendor", >- "tags": ["acquisitions","vendors"], >+ "tags": ["vendors"], > "parameters": [{ > "$ref": "../parameters.json#/vendoridPathParam" > }], >@@ -194,7 +194,7 @@ > "put": { > "x-mojo-to": "Acquisitions::Vendors#update", > "operationId": "updateVendor", >- "tags": ["acquisitions","vendors"], >+ "tags": ["vendors"], > "parameters": [{ > "$ref": "../parameters.json#/vendoridPathParam" > }, { >@@ -256,7 +256,7 @@ > "delete": { > "x-mojo-to": "Acquisitions::Vendors#delete", > "operationId": "deleteVendor", >- "tags": ["acquisitions","vendors"], >+ "tags": ["vendors"], > "parameters": [{ > "$ref": "../parameters.json#/vendoridPathParam" > }], >diff --git a/api/v1/swagger/paths/cash_registers.json b/api/v1/swagger/paths/cash_registers.json >index 5466cd18be..e062f2646c 100644 >--- a/api/v1/swagger/paths/cash_registers.json >+++ b/api/v1/swagger/paths/cash_registers.json >@@ -3,7 +3,7 @@ > "get": { > "x-mojo-to": "CashRegisters::Cashups#list", > "operationId": "listCashups", >- "tags": ["cash_registers", "cashups"], >+ "tags": ["cashups"], > "produces": ["application/json"], > "parameters": [{ > "$ref": "../parameters.json#/cash_register_id_pp" >@@ -67,7 +67,7 @@ > "get": { > "x-mojo-to": "CashRegisters::Cashups#get", > "operationId": "getCashup", >- "tags": ["cash_registers", "cashups"], >+ "tags": ["cashups"], > "parameters": [{ > "$ref": "../parameters.json#/cashup_id_pp" > }], >diff --git a/api/v1/swagger/paths/checkouts.json b/api/v1/swagger/paths/checkouts.json >index cc2841b28d..85fe84715e 100644 >--- a/api/v1/swagger/paths/checkouts.json >+++ b/api/v1/swagger/paths/checkouts.json >@@ -3,7 +3,7 @@ > "get": { > "x-mojo-to": "Checkouts#list", > "operationId": "listCheckouts", >- "tags": ["patrons", "checkouts"], >+ "tags": ["checkouts"], > "parameters": [{ > "$ref": "../parameters.json#/patron_id_qp" > }, { >@@ -53,7 +53,7 @@ > "get": { > "x-mojo-to": "Checkouts#get", > "operationId": "getCheckout", >- "tags": ["patrons", "checkouts"], >+ "tags": ["checkouts"], > "parameters": [{ > "$ref": "../parameters.json#/checkout_id_pp" > }], >@@ -86,7 +86,7 @@ > "post": { > "x-mojo-to": "Checkouts#renew", > "operationId": "renewCheckout", >- "tags": ["patrons", "checkouts"], >+ "tags": ["checkouts"], > "parameters": [ > { "$ref": "../parameters.json#/checkout_id_pp" }, > { "$ref": "../parameters.json#/seen_pp" } >@@ -117,7 +117,7 @@ > "get": { > "x-mojo-to": "Checkouts#allows_renewal", > "operationId": "allows_renewalCheckout", >- "tags": ["patrons", "checkouts"], >+ "tags": ["checkouts"], > "parameters": [{ > "$ref": "../parameters.json#/checkout_id_pp" > }], >diff --git a/api/v1/swagger/paths/clubs.json b/api/v1/swagger/paths/clubs.json >index 32862074d3..6a4ae46e27 100644 >--- a/api/v1/swagger/paths/clubs.json >+++ b/api/v1/swagger/paths/clubs.json >@@ -3,7 +3,7 @@ > "post": { > "x-mojo-to": "Clubs::Holds#add", > "operationId": "addClubHold", >- "tags": ["holds", "clubs"], >+ "tags": ["clubs"], > "parameters": [{ > "$ref": "../parameters.json#/club_id_pp" > }, { >diff --git a/api/v1/swagger/paths/holds.json b/api/v1/swagger/paths/holds.json >index 66dd21c733..b875f30fba 100644 >--- a/api/v1/swagger/paths/holds.json >+++ b/api/v1/swagger/paths/holds.json >@@ -3,7 +3,7 @@ > "get": { > "x-mojo-to": "Holds#list", > "operationId": "listHolds", >- "tags": ["patrons", "holds"], >+ "tags": ["holds"], > "parameters": [ > { > "name": "hold_id", >@@ -179,7 +179,7 @@ > "post": { > "x-mojo-to": "Holds#add", > "operationId": "addHold", >- "tags": ["patrons", "holds"], >+ "tags": ["holds"], > "parameters": [ > { > "name": "body", >-- >2.31.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 28461
:
121426
| 121427 |
121428
|
121430
|
121431