From cfd19aeb74b728f41e82da26724e29b719c2f292 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 Signed-off-by: Tomas Cohen Arazi --- 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.35.1