From 165a7d3e9f279251f2c76a41f8195788579dede3 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 Signed-off-by: Jonathan Druart Signed-off-by: Fridolin Somers --- 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.39.5