]> git.koha-community.org Git - koha.git/commit
Bug 22522: Add support for current Mojolicious and related packages
authorEre Maijala <ere.maijala@helsinki.fi>
Wed, 29 Jan 2020 11:24:15 +0000 (13:24 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 25 Feb 2020 13:43:51 +0000 (13:43 +0000)
commit7a4dc6c8ed1d21343fc101366e1d299bcd92fb45
treef1082ba7da44971922838edce3490d11152981a1
parenta01e5132c15d4a7241a9926b326566248367881f
Bug 22522: 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: Mason James <mason@kohaaloha.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/V1/Auth.pm
t/db_dependent/Koha/REST/Plugin/Objects.t
t/db_dependent/Koha/REST/Plugin/PluginRoutes.t