Bugzilla – Attachment 132098 Details for
Bug 30194
Update required JSON::Validator version
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30194: Fix invalid spec
Bug-30194-Fix-invalid-spec.patch (text/plain), 9.99 KB, created by
Mason James
on 2022-03-24 06:14:01 UTC
(
hide
)
Description:
Bug 30194: Fix invalid spec
Filename:
MIME Type:
Creator:
Mason James
Created:
2022-03-24 06:14:01 UTC
Size:
9.99 KB
patch
obsolete
>From 8c10716915ccfb5ad1bddd6c6fc0186870493a15 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 8 Mar 2022 12:57:02 -0300 >Subject: [PATCH] Bug 30194: Fix invalid spec >Content-Type: text/plain; charset="utf-8" > >This patch fixes a problem with the spec. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Mason James <mtj@kohaaloha.com> >--- > api/v1/swagger/parameters.yaml | 4 +- > api/v1/swagger/swagger.yaml | 212 +++++++++++++++++++++++++++++++-- > 2 files changed, 206 insertions(+), 10 deletions(-) > >diff --git a/api/v1/swagger/parameters.yaml b/api/v1/swagger/parameters.yaml >index ec15f2f8f6..c2539ad722 100644 >--- a/api/v1/swagger/parameters.yaml >+++ b/api/v1/swagger/parameters.yaml >@@ -67,9 +67,7 @@ q_body: > required: false > description: Query filter sent through request's body > schema: >- type: >- - object >- - array >+ type: object > q_param: > name: q > in: query >diff --git a/api/v1/swagger/swagger.yaml b/api/v1/swagger/swagger.yaml >index 63597829f6..09425a8d7d 100644 >--- a/api/v1/swagger/swagger.yaml >+++ b/api/v1/swagger/swagger.yaml >@@ -1,14 +1,212 @@ > --- > swagger: "2.0" > basePath: /api/v1 >-paths: >- $ref: paths.yaml > definitions: >- $ref: definitions.yaml >-parameters: >- $ref: parameters.yaml >-x-primitives: >- $ref: x-primitives.yaml >+ account_line: >+ $ref: definitions/account_line.yaml >+ advancededitormacro: >+ $ref: definitions/advancededitormacro.yaml >+ allows_renewal: >+ $ref: definitions/allows_renewal.yaml >+ basket: >+ $ref: definitions/basket.yaml >+ cashup: >+ $ref: definitions/cashup.yaml >+ checkout: >+ $ref: definitions/checkout.yaml >+ checkouts: >+ $ref: definitions/checkouts.yaml >+ circ-rule-kind: >+ $ref: definitions/circ-rule-kind.yaml >+ city: >+ $ref: definitions/city.yaml >+ error: >+ $ref: definitions/error.yaml >+ fund: >+ $ref: definitions/fund.yaml >+ hold: >+ $ref: definitions/hold.yaml >+ holds: >+ $ref: definitions/holds.yaml >+ ill_backend: >+ $ref: definitions/ill_backend.yaml >+ ill_backends: >+ $ref: definitions/ill_backends.yaml >+ import_batch_profile: >+ $ref: definitions/import_batch_profile.yaml >+ import_batch_profiles: >+ $ref: definitions/import_batch_profiles.yaml >+ invoice: >+ $ref: definitions/invoice.yaml >+ item: >+ $ref: definitions/item.yaml >+ library: >+ $ref: definitions/library.yaml >+ order: >+ $ref: definitions/order.yaml >+ patron: >+ $ref: definitions/patron.yaml >+ patron_account_credit: >+ $ref: definitions/patron_account_credit.yaml >+ patron_balance: >+ $ref: definitions/patron_balance.yaml >+ patron_extended_attribute: >+ $ref: definitions/patron_extended_attribute.yaml >+ quote: >+ $ref: definitions/quote.yaml >+ return_claim: >+ $ref: definitions/return_claim.yaml >+ smtp_server: >+ $ref: definitions/smtp_server.yaml >+ suggestion: >+ $ref: definitions/suggestion.yaml >+ transfer_limit: >+ $ref: definitions/transfer_limit.yaml >+ vendor: >+ $ref: definitions/vendor.yaml >+paths: >+ /oauth/token: >+ $ref: paths/oauth.yaml#/~1oauth~1token >+ /acquisitions/orders: >+ $ref: paths/acquisitions_orders.yaml#/~1acquisitions~1orders >+ "/acquisitions/orders/{order_id}": >+ $ref: paths/acquisitions_orders.yaml#/~1acquisitions~1orders~1{order_id} >+ /acquisitions/vendors: >+ $ref: paths/acquisitions_vendors.yaml#/~1acquisitions~1vendors >+ "/acquisitions/vendors/{vendor_id}": >+ $ref: paths/acquisitions_vendors.yaml#/~1acquisitions~1vendors~1{vendor_id} >+ /acquisitions/funds: >+ $ref: paths/acquisitions_funds.yaml#/~1acquisitions~1funds >+ "/article_requests/{article_request_id}": >+ $ref: paths/article_requests.yaml#/~1article_requests~1{article_request_id} >+ "/biblios/{biblio_id}": >+ $ref: paths/biblios.yaml#/~1biblios~1{biblio_id} >+ "/biblios/{biblio_id}/checkouts": >+ $ref: paths/biblios.yaml#/~1biblios~1{biblio_id}~1checkouts >+ "/biblios/{biblio_id}/items": >+ $ref: paths/biblios.yaml#/~1biblios~1{biblio_id}~1items >+ "/biblios/{biblio_id}/pickup_locations": >+ $ref: paths/biblios.yaml#/~1biblios~1{biblio_id}~1pickup_locations >+ "/cash_registers/{cash_register_id}/cashups": >+ $ref: paths/cash_registers.yaml#/~1cash_registers~1{cash_register_id}~1cashups >+ "/cashups/{cashup_id}": >+ $ref: paths/cash_registers.yaml#/~1cashups~1{cashup_id} >+ /checkouts: >+ $ref: paths/checkouts.yaml#/~1checkouts >+ "/checkouts/{checkout_id}": >+ $ref: paths/checkouts.yaml#/~1checkouts~1{checkout_id} >+ "/checkouts/{checkout_id}/renewal": >+ $ref: paths/checkouts.yaml#/~1checkouts~1{checkout_id}~1renewal >+ /circulation-rules/kinds: >+ $ref: paths/circulation-rules.yaml#/~1circulation-rules~1kinds >+ /cities: >+ $ref: paths/cities.yaml#/~1cities >+ "/cities/{city_id}": >+ $ref: paths/cities.yaml#/~1cities~1{city_id} >+ "/clubs/{club_id}/holds": >+ $ref: paths/clubs.yaml#/~1clubs~1{club_id}~1holds >+ /config/smtp_servers: >+ $ref: paths/config_smtp_servers.yaml#/~1config~1smtp_servers >+ "/config/smtp_servers/{smtp_server_id}": >+ $ref: paths/config_smtp_servers.yaml#/~1config~1smtp_servers~1{smtp_server_id} >+ /holds: >+ $ref: paths/holds.yaml#/~1holds >+ "/holds/{hold_id}": >+ $ref: paths/holds.yaml#/~1holds~1{hold_id} >+ "/holds/{hold_id}/priority": >+ $ref: paths/holds.yaml#/~1holds~1{hold_id}~1priority >+ "/holds/{hold_id}/suspension": >+ $ref: paths/holds.yaml#/~1holds~1{hold_id}~1suspension >+ "/holds/{hold_id}/pickup_locations": >+ $ref: paths/holds.yaml#/~1holds~1{hold_id}~1pickup_locations >+ "/holds/{hold_id}/pickup_location": >+ $ref: paths/holds.yaml#/~1holds~1{hold_id}~1pickup_location >+ /items: >+ $ref: paths/items.yaml#/~1items >+ "/items/{item_id}": >+ $ref: paths/items.yaml#/~1items~1{item_id} >+ "/items/{item_id}/pickup_locations": >+ $ref: paths/items.yaml#/~1items~1{item_id}~1pickup_locations >+ /libraries: >+ $ref: paths/libraries.yaml#/~1libraries >+ "/libraries/{library_id}": >+ $ref: paths/libraries.yaml#/~1libraries~1{library_id} >+ /transfer_limits: >+ $ref: paths/transfer_limits.yaml#/~1transfer_limits >+ "/transfer_limits/{limit_id}": >+ $ref: paths/transfer_limits.yaml#/~1transfer_limits~1{limit_id} >+ /transfer_limits/batch: >+ $ref: paths/transfer_limits.yaml#/~1transfer_limits~1batch >+ "/checkouts/{checkout_id}/allows_renewal": >+ $ref: paths/checkouts.yaml#/~1checkouts~1{checkout_id}~1allows_renewal >+ /advanced_editor/macros: >+ $ref: paths/advancededitormacros.yaml#/~1advanced_editor~1macros >+ "/advanced_editor/macros/{advancededitormacro_id}": >+ $ref: paths/advancededitormacros.yaml#/~1advanced_editor~1macros~1{advancededitormacro_id} >+ /advanced_editor/macros/shared: >+ $ref: paths/advancededitormacros.yaml#/~1advanced_editor~1macros~1shared >+ "/advanced_editor/macros/shared/{advancededitormacro_id}": >+ $ref: paths/advancededitormacros.yaml#/~1advanced_editor~1macros~1shared~1{advancededitormacro_id} >+ /patrons: >+ $ref: paths/patrons.yaml#/~1patrons >+ "/patrons/{patron_id}": >+ $ref: paths/patrons.yaml#/~1patrons~1{patron_id} >+ "/patrons/{patron_id}/account": >+ $ref: paths/patrons_account.yaml#/~1patrons~1{patron_id}~1account >+ "/patrons/{patron_id}/account/credits": >+ $ref: paths/patrons_account.yaml#/~1patrons~1{patron_id}~1account~1credits >+ "/patrons/{patron_id}/extended_attributes": >+ $ref: paths/patrons_extended_attributes.yaml#/~1patrons~1{patron_id}~1extended_attributes >+ "/patrons/{patron_id}/extended_attributes/{extended_attribute_id}": >+ $ref: paths/patrons_extended_attributes.yaml#/~1patrons~1{patron_id}~1extended_attributes~1{extended_attribute_id} >+ "/patrons/{patron_id}/holds": >+ $ref: paths/patrons_holds.yaml#/~1patrons~1{patron_id}~1holds >+ "/patrons/{patron_id}/password": >+ $ref: paths/patrons_password.yaml#/~1patrons~1{patron_id}~1password >+ /ill_backends: >+ $ref: paths/ill_backends.yaml#/~1ill_backends >+ "/ill_backends/{ill_backend_id}": >+ $ref: paths/ill_backends.yaml#/~1ill_backends~1{ill_backend_id} >+ /illrequests: >+ $ref: paths/illrequests.yaml#/~1illrequests >+ /import_batch_profiles: >+ $ref: paths/import_batch_profiles.yaml#/~1import_batch_profiles >+ "/import_batch_profiles/{import_batch_profile_id}": >+ $ref: paths/import_batch_profiles.yaml#/~1import_batch_profiles~1{import_batch_profile_id} >+ "/rotas/{rota_id}/stages/{stage_id}/position": >+ $ref: paths/rotas.yaml#/~1rotas~1{rota_id}~1stages~1{stage_id}~1position >+ "/public/biblios/{biblio_id}": >+ $ref: paths/biblios.yaml#/~1public~1biblios~1{biblio_id} >+ "/public/biblios/{biblio_id}/items": >+ $ref: paths/biblios.yaml#/~1public~1biblios~1{biblio_id}~1items >+ /public/libraries: >+ $ref: paths/libraries.yaml#/~1public~1libraries >+ "/public/libraries/{library_id}": >+ $ref: paths/libraries.yaml#/~1public~1libraries~1{library_id} >+ "/public/patrons/{patron_id}/article_requests/{article_request_id}": >+ $ref: paths/article_requests.yaml#/~1public~1patrons~1{patron_id}~1article_requests~1{article_request_id} >+ "/public/patrons/{patron_id}/password": >+ $ref: paths/public_patrons.yaml#/~1public~1patrons~1{patron_id}~1password >+ "/public/patrons/{patron_id}/guarantors/can_see_charges": >+ $ref: paths/public_patrons.yaml#/~1public~1patrons~1{patron_id}~1guarantors~1can_see_charges >+ "/public/patrons/{patron_id}/guarantors/can_see_checkouts": >+ $ref: paths/public_patrons.yaml#/~1public~1patrons~1{patron_id}~1guarantors~1can_see_checkouts >+ /quotes: >+ $ref: paths/quotes.yaml#/~1quotes >+ "/quotes/{quote_id}": >+ $ref: paths/quotes.yaml#/~1quotes~1{quote_id} >+ /return_claims: >+ $ref: paths/return_claims.yaml#/~1return_claims >+ "/return_claims/{claim_id}/notes": >+ $ref: paths/return_claims.yaml#/~1return_claims~1{claim_id}~1notes >+ "/return_claims/{claim_id}/resolve": >+ $ref: paths/return_claims.yaml#/~1return_claims~1{claim_id}~1resolve >+ "/return_claims/{claim_id}": >+ $ref: paths/return_claims.yaml#/~1return_claims~1{claim_id} >+ /suggestions: >+ $ref: paths/suggestions.yaml#/~1suggestions >+ "/suggestions/{suggestion_id}": >+ $ref: paths/suggestions.yaml#/~1suggestions~1{suggestion_id} > info: > title: Koha REST API > version: "1" >-- >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 30194
:
131374
|
131486
|
131487
|
131488
|
131497
|
131498
|
131499
|
131500
|
131501
|
131502
|
131547
|
131548
|
131549
|
131550
|
131551
|
131552
|
132069
|
132070
|
132071
|
132072
|
132073
|
132097
|
132098
|
132099
|
132100
|
132102
|
132112
|
132116
|
132118
|
132119
|
132120
|
132121
|
132122
|
132123
|
132124
|
132125
|
132126
|
132151
|
132152
|
132252
|
132253
|
132254
|
132334
|
132335
|
132336
|
132337
|
132338
|
132339
|
132340
|
132442
|
132449