Koha-clms/api/v1/swagger
Tomas Cohen Arazi 233c35bdc0 Bug 30165: Make q parameter 'multi'
This patch changes the q_param definition so the defined query parameter
is repeatable. This way JSON::Validator will always generate an arrayref
for it and won't skip occurences.

The objects.search helper is updated to always consider the 'q'
parameter as an array, as expected.

To test:
1. Apply the regression tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/query.t
=> FAIL: Tests fail!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-03-22 10:17:33 -10:00
..
definitions Bug 28020: Add error_code to error responses 2022-01-05 13:33:46 -10:00
parameters Bug 29620: (follow-up) Rename remaining old-style parameters 2021-12-07 12:33:35 -10:00
paths Bug 29772: (follow-up) Document error codes 2022-01-05 13:33:46 -10:00
definitions.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-07 12:33:35 -10:00
parameters.yaml Bug 30165: Make q parameter 'multi' 2022-03-22 10:17:33 -10:00
paths.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-07 12:33:35 -10:00
swagger.yaml Bug 28020: (follow-up) Add docs about error_code on the API 2022-01-05 13:33:46 -10:00
x-primitives.yaml Bug 29620: Move the OpenAPI spec to YAML format 2021-12-07 12:33:35 -10:00