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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user