From d4965ffd287ed3248e7675fd2ebf40f9e6be2604 Mon Sep 17 00:00:00 2001 From: Gabriel Testault Date: Wed, 3 May 2023 16:51:16 +0200 Subject: [PATCH] fix(catalog-backend-module-openapi): resolve refs from OpenAPI spec baseUrl Signed-off-by: Gabriel Testault --- plugins/catalog-backend-module-openapi/src/lib/bundle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/catalog-backend-module-openapi/src/lib/bundle.ts b/plugins/catalog-backend-module-openapi/src/lib/bundle.ts index 64c772b91e..59f7e5791f 100644 --- a/plugins/catalog-backend-module-openapi/src/lib/bundle.ts +++ b/plugins/catalog-backend-module-openapi/src/lib/bundle.ts @@ -65,6 +65,6 @@ export async function bundleFileWithRefs( }, }; const fileObject = parse(fileWithRefs); - const bundledObject = await $RefParser.bundle(fileObject, options); + const bundledObject = await $RefParser.bundle(baseUrl, fileObject, options); return stringify(bundledObject); }