From e1bbbedb80a2c3d2ae17f9ec2ddc75d7c235bb8d Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 25 Apr 2024 11:09:32 -0300 Subject: [PATCH] Bug 36546: Use JSON instead Signed-off-by: Tomas Cohen Arazi Signed-off-by: Paul Derscheid Signed-off-by: David Cook Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- Koha/REST/V1.pm | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/REST/V1.pm b/Koha/REST/V1.pm index 243d2b7801..66bae63d73 100644 --- a/Koha/REST/V1.pm +++ b/Koha/REST/V1.pm @@ -75,7 +75,7 @@ sub startup { $self->secrets([$secret_passphrase]); } - my $spec_file = $self->home->rel_file("api/v1/swagger/swagger_bundle.yaml"); + my $spec_file = $self->home->rel_file("api/v1/swagger/swagger_bundle.json"); push @{$self->routes->namespaces}, 'Koha::Plugin'; diff --git a/package.json b/package.json index d71e55236a..b82e123745 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "build:prod": "yarn css:build:prod && yarn js:build:prod", "cypress": "cypress", "prettier": "prettier", - "api:bundle": "redocly bundle api/v1/swagger/swagger.yaml > api/v1/swagger/swagger_bundle.yaml" + "api:bundle": "redocly bundle --ext json api/v1/swagger/swagger.yaml --output api/v1/swagger/swagger_bundle.json" }, "repository": { "type": "git", -- 2.39.5