@@ -, +, @@ invalid Koha::REST::V1::catch {...} ("Duplicate keys not allowed, at character offset 4789 (before "...) called at /usr/share/perl5/Try/Tiny.pm line 123 --- Koha/REST/V1.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/Koha/REST/V1.pm +++ a/Koha/REST/V1.pm @@ -74,15 +74,14 @@ sub startup { push @{$self->routes->namespaces}, 'Koha::Plugin'; # Try to load and merge all schemas first and validate the result just once. - my $spec; - try { - $spec = $validator->bundle( + my $spec = $validator->bundle( { replace => 1, schema => $self->home->rel_file("api/v1/swagger/swagger.json") } ); + try { $self->plugin( 'Koha::REST::Plugin::PluginRoutes' => { spec => $spec, --