Koha-clms/Koha/REST/Plugin
Tomas Cohen Arazi 17b851bff0
Bug 40424: Make query-in-body rely on `$c->req->json`
This patch removes the reliance on `$c->validation->output` for the
query-in-body feature. This will allow bug 40417 to move forward.

It also fixes some wrong design decisions we made 5-6 years ago. This
was discussed with the Mojolicious::Plugin::OpenAPI maintainer and the
agreement was `$c->validation->output` was not stable nor intended to be
accessed like we do.

To test:
1. Run:
   $ ktd --shell
  k$ prove t/Koha/REST/Plugin/Query.t \
           t/db_dependent/api/v1/*.t \
           t/db_dependent/Koha/REST/Plugin/*
=> SUCCESS: Tests pass!
2. Apply this patchset
3. Repeat 1
=> SUCCESS: Tests pass!
4. Sign off :-D

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-07-23 16:36:38 -06:00
..
Auth Bug 39367: Automatic changes 2025-04-23 09:35:14 +02:00
Exceptions.pm Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
Objects.pm Bug 40424: Make query-in-body rely on `$c->req->json` 2025-07-23 16:36:38 -06:00
Pagination.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
PluginRoutes.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Query.pm Bug 40424: Make query-in-body rely on `$c->req->json` 2025-07-23 16:36:38 -06:00
Responses.pm Bug 39367: Automatic changes 2025-04-23 09:35:14 +02:00