fix(catalog-backend-module-openapi): resolve refs from OpenAPI spec baseUrl

Signed-off-by: Gabriel Testault <gabriel.testault@goto.com>
This commit is contained in:
Gabriel Testault
2023-05-03 16:51:16 +02:00
parent c010a30fe9
commit d4965ffd28
@@ -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);
}