[Koha-bugs] [Bug 23653] Plack stopped working - JSON validation timeout
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jul 1 03:49:03 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23653
--- Comment #25 from David Cook <dcook at prosentient.com.au> ---
(In reply to Tomás Cohen Arazi from comment #23)
> (In reply to David Cook from comment #22)
> > I'm about to start on a patch for this. Hopefully will have something very
> > soon.
>
> We should just package the library with the correct cache
Maybe. I think there is more to this than we think.
Consider ./Koha/REST/V1.pm:
$validator->bundle uses a schema of
$self->home->rel_file("api/v1/swagger/swagger.json"), which is a drastically
reduced schema file.
Calls to $validator->load_and_validate_schema (in ./Koha/REST/V1.pm and
./Koha/REST/Plugin/PluginRoutes.pm) don't use that same schema. They try to
fetch http://swagger.io/v2/schema.json.
The question I have is whether they should all be using
$self->home->rel_file("api/v1/swagger/swagger.json"), or if *some* calls should
use our local swagger.json and others should use the full swagger 2.0 schema.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list