@@ -, +, @@ --- Koha/REST/Plugin/PluginRoutes.pm | 1 - Koha/REST/V1.pm | 10 ---------- 2 files changed, 11 deletions(-) --- a/Koha/REST/Plugin/PluginRoutes.pm +++ a/Koha/REST/Plugin/PluginRoutes.pm @@ -153,7 +153,6 @@ sub spec_ok { $validator->load_and_validate_schema( $spec, { - allow_invalid_ref => 1, schema => ( $schema ) ? $schema : undef, } ); --- a/Koha/REST/V1.pm +++ a/Koha/REST/V1.pm @@ -78,7 +78,6 @@ sub startup { try { $spec = $validator->bundle( { - replace => 1, schema => $self->home->rel_file("api/v1/swagger/swagger.yaml") } ); @@ -95,10 +94,6 @@ sub startup { spec => $spec, route => $self->routes->under('/api/v1')->to('Auth#under'), schema => ( $swagger_schema ) ? $swagger_schema : undef, - allow_invalid_ref => - 1, # required by our spec because $ref directly under - # Paths-, Parameters-, Definitions- & Info-object - # is not allowed by the OpenAPI specification. } ); } @@ -114,7 +109,6 @@ sub startup { $validator->load_and_validate_schema( $self->home->rel_file("api/v1/swagger/swagger.yaml"), { - allow_invalid_ref => 1, schema => ( $swagger_schema ) ? $swagger_schema : undef, } ); @@ -131,10 +125,6 @@ sub startup { OpenAPI => { spec => $spec, route => $self->routes->under('/api/v1')->to('Auth#under'), - allow_invalid_ref => - 1, # required by our spec because $ref directly under - # Paths-, Parameters-, Definitions- & Info-object - # is not allowed by the OpenAPI specification. } ); } --