[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
Fri Jul 3 07:48:34 CEST 2020


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

--- Comment #49 from Julian Maurice <julian.maurice at biblibre.com> ---
Comment on attachment 106445
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=106445
Bug 23653: use local copy of swagger v2 schema

Review of attachment 106445:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=23653&attachment=106445)
-----------------------------------------------------------------

::: 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

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


More information about the Koha-bugs mailing list