@@ -, +, @@ --- Koha/REST/V1/Libraries.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/Koha/REST/V1/Libraries.pm +++ a/Koha/REST/V1/Libraries.pm @@ -73,10 +73,9 @@ sub get { return $c->render( status => 200, - openapi => $library->to_api + openapi => $c->objects->to_api($library), ); - } - catch { + } catch { $c->unhandled_exception($_); }; } --