From 4b820f29d431f876390083af26da6cbb32198542 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 25 Apr 2024 11:09:32 -0300 Subject: [PATCH] [OPTIONAL] Bug 36546: Use JSON instead Signed-off-by: Tomas Cohen Arazi --- 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 75753884211..9455f972f01 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 d71e55236a5..b82e123745d 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.44.0