[Koha-bugs] [Bug 23653] Plack fails when http://swagger.io/v2/schema.json is unavailable and schema cache missing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 10 11:01:35 CEST 2020


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

--- Comment #64 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Julian Maurice from comment #49)
> Comment on attachment 106445 [details] [review]
> Bug 23653: use local copy of swagger v2 schema
> 
> Review of attachment 106445 [details] [review]:
> -----------------------------------------------------------------
> 
> ::: Koha/REST/Plugin/PluginRoutes.pm
> @@ +49,5 @@
> >      {
> > +        my $schema = $app->home->rel_file("api/swagger-v2-schema.json");
> > +        if ($schema){
> > +           $self->{'swagger-v2-schema'} = $schema;
> > +        }
> 
> What is the test for ? rel_file returns something even if the file does not
> exist

I removed the test. Ready for QA.

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


More information about the Koha-bugs mailing list