[Koha-bugs] [Bug 33503] Plugin OpenAPI2.0 specification schema fragments are not resolved. Merge full schema definitions.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 28 03:39:34 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33503

--- Comment #8 from Olli-Antti Kivilahti <olli-antti.kivilahti at hypernova.fi> ---
(In reply to Victor Grousset/tuxayo from comment #7)
> So it was just a number-of-tests problem?! :o
> Sorry, I could have fixed it. I was confused by «Failed test 'Permissions
> and access to plugin routes tests'»
> 
> Anyway, test pass so signed-off.
> 
> I gave a go at the alternative:
> «Install this plugin, and observe the routes are not loaded into the REST
> API»
> How?

Make a GET request to /api/v1/ and you can see the schema definition.
The plugin's openapi-directory has the path definitions and you can see that
the path definitions are not loaded in the aforementioned schema definition
from /api/v1/
This is standard Koha-plugin development workflow and it is a bit difficult to
test this if there is no previous experience with developing plugins with
complex rest api schemas.
You have to restart plack for the route definitions to take place.

I appreciate the sign-off.
Also the plugin loaded into the test case explains more briefly what is the
exact case that is being tested.
Most plugins just have the /paths defined in the OpenAPI schema and not very
many different paths.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list