[SIGNED-OFF] Bug 22522: [19.11.x] Add support for current Mojolicious and related...
authorEre Maijala <ere.maijala@helsinki.fi>
Wed, 29 Jan 2020 11:24:15 +0000 (13:24 +0200)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Tue, 9 Jun 2020 21:52:28 +0000 (21:52 +0000)
commit6eef54e9407dbf7e65a05022fbaa8fe09bf859d3
tree099d17c59f54fdb4a33103c2ca4b9857d6977573
parentc5d8ee7651da7732990139682c1ad404d17a9d7f
[SIGNED-OFF] Bug 22522: [19.11.x] Add support for current Mojolicious and related packages

This patch allows tests to succeed with the following versions:
JSON::Validator 3.18
Mojolicious 8.32
Mojolicious::Plugin::OpenAPI 2.21

Also Mojolicious::Plugin::OpenAPI version 1.17 and later 1.x versions now work.

Calling valid_input in under() would cause ' Use of uninitialized value $_[2] ' in more recent OpenAPI plugins, so that was changed too. As far as I can see this does not affect authorization.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Koha/REST/V1/Auth.pm
t/db_dependent/Koha/REST/Plugin/Objects.t
t/db_dependent/Koha/REST/Plugin/PluginRoutes.t