Koha/api/v1/swagger
Jonathan Druart d5c155203e 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.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-05-17 16:07:17 +02:00
..
definitions Bug 28272: Add unseen_renewals for checkouts 2021-05-11 09:26:47 +02:00
parameters Bug 26633: Add REST API for managing transfer limits 2021-03-16 16:08:30 +01:00
paths Bug 28254: Make PUT /holds/:hold_id/pickup_location honour x-koha-override 2021-05-04 14:22:08 +02:00
definitions.json Bug 23666: Add spec 2021-04-22 14:50:11 +02:00
parameters.json Bug 26633: Add REST API for managing transfer limits 2021-03-16 16:08:30 +01:00
paths.json Bug 27932: Add GET /biblios/:biblio_id/pickup_locations route 2021-04-30 17:19:01 +02:00
swagger.yaml Bug 28189: Fix PluginRoutes.t 2021-05-17 16:07:17 +02:00
x-primitives.json Bug 26633: Add REST API for managing transfer limits 2021-03-16 16:08:30 +01:00