From 6137e22637ba70b7e8535e8a047674a393e1d25c Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 24 Mar 2022 10:30:33 +0000 Subject: [PATCH] Bug 30194: (follow-up) Remove reference to swagger-v2-schema This file is now bundled directly an no longer needs to be refered to separately. Signed-off-by: Martin Renvoize --- Koha/REST/Plugin/PluginRoutes.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Koha/REST/Plugin/PluginRoutes.pm b/Koha/REST/Plugin/PluginRoutes.pm index e97a29c764..e626a179b8 100644 --- a/Koha/REST/Plugin/PluginRoutes.pm +++ b/Koha/REST/Plugin/PluginRoutes.pm @@ -49,8 +49,6 @@ sub register { if ( C4::Context->config("enable_plugins") ) { - $self->{'swagger-v2-schema'} = $app->home->rel_file("api/swagger-v2-schema.json"); - # plugin needs to define a namespace @plugins = Koha::Plugins->new()->GetPlugins( { @@ -79,7 +77,7 @@ sub inject_routes { return try { my $backup_spec = merge_spec( clone($spec), $plugin ); - if ( $self->spec_ok( $backup_spec, $validate ) ) { + if ( $self->spec_ok( $backup_spec ) ) { $spec = merge_spec( $spec, $plugin ); } else { -- 2.20.1