Koha-clms/t/db_dependent/api/v1
Tomas Cohen Arazi 185b431ebf
Bug 33227: Remove invalid spec and adjust the code accordingly
The spec contains a non-standard definition for the body param. Removing
it from the spec makes us need to handle the 'body' manually in the case
of JSON data.

This patch basically does that. It also changes the uses of
$c->validation, which are discouraged by the
Mojolicious::Plugin::OpenAPI dev/maintainer. I do it to highlight what
we must do in other places and the fact that there's no behavior change.

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/biblios.t \
           xt/api.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-03-20 09:39:50 -03:00
..
acquisitions_baskets.t
…
acquisitions_funds.t
…
acquisitions_orders.t
…
acquisitions_vendors.t
…
advanced_editor_macros.t
…
article_requests.t
…
auth.t
…
auth_authenticate_api_request.t
…
auth_basic.t
…
authorised_values.t Bug 32997: (QA follow-up) values => authorised_values 2023-03-02 12:00:17 -03:00
authorities.t Bug 31793: (QA follow-up) Require editauthorities flag 2023-03-10 10:21:19 -03:00
biblios.t Bug 33227: Remove invalid spec and adjust the code accordingly 2023-03-20 09:39:50 -03:00
cashups.t
…
checkouts.t Bug 30642: Make renewal_type an enum in spec and add test 2023-02-10 11:08:00 -03:00
cities.t
…
clubs_holds.t
…
erm_agreements.t Bug 32353: Fix erm_agreements.t 2023-02-23 07:43:00 -03:00
erm_documents.t
…
erm_eholdings_packages.t Bug 32923: Some fixes in ERM specs 2023-02-27 11:07:19 -03:00
erm_eholdings_resources.t
…
erm_eholdings_titles.t
…
erm_licenses.t
…
erm_users.t
…
holds.t
…
idp.t
…
illrequests.t
…
import_batch_profiles.t
…
import_record_matches.t
…
item_groups.t
…
items.t Bug 31797: Add DELETE /items/:item_id endpoint 2023-01-30 12:20:44 -03:00
jobs.t
…
libraries.t
…
oauth.t
…
pagination.t
…
password_validation.t Bug 30962: (QA follow-up) Rename attribute and simplify tests 2023-02-03 10:30:13 -03:00
patrons.t Bug 32351: Fix t/db_dependent/api/v1/patrons.t 2022-11-30 15:58:19 -03:00
patrons_accounts.t
…
patrons_extended_attributes.t
…
patrons_holds.t Bug 28670: Prevent api/v1/patrons_holds.t to fail randomly 2023-01-18 16:10:19 +00:00
patrons_password.t
…
patrons_password_expiration.t
…
query.t Bug 32713: Unit tests 2023-03-16 16:12:26 -03:00
return_claims.t
…
search_filters.t
…
smtp_servers.t
…
stockrotationstage.t
…
suggestions.t
…
ticket_updates.t Bug 31028: (follow-up) Fix executable bit 2023-03-07 14:54:29 -03:00
tickets.t Bug 31028: Add API's for tickets 2023-03-06 11:23:17 -03:00
transfer_limits.t
…
two_factor_auth.t
…
unhandled_exceptions.t
…