[Koha-bugs] [Bug 28189] Move the base swagger file to YAML
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon May 17 16:09:50 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28189
--- Comment #16 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 121053
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121053&action=edit
Bug 28189: Fix PluginRoutes.t
So, this one was hidden.
The failures were:
# Failed test 'Bad plugins raise warning'
# at t/db_dependent/Koha/REST/Plugin/PluginRoutes.t line 75.
# found warning: Warning: Could not load REST API spec bundle: Invalid JSON
specification HASH(0x556972b22da0):
# found warning: Warning: Could not load REST API spec bundle: Invalid JSON
specification HASH(0x5569735b8368):
# expected to find warning: (?^u:Could not load REST API spec bundle:
Invalid JSON specification)
# expected to find warning: (?^u:The resulting spec is invalid. Skipping
Bad API Route Plugin)
And the correct error was (after a debug warn in JSON::Validator):
Warning: Could not load REST API spec bundle: Invalid JSON specification
HASH(0x55fd0c3d3160):
- /info/version: Expected string - got number. at
/usr/share/perl5/JSON/Validator.pm line 165.
So this patch fixes it, but I don't understand why it's only failing for
plugin routes however.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list