Merge branch 'split/develop/multiFileSupport' of github.com:postmanlabs/openapi-to-postman into feature/add-reference-map-bundle

This commit is contained in:
Vishal Shingala
2022-06-24 11:36:45 +05:30
7 changed files with 249 additions and 40 deletions

View File

@@ -4851,7 +4851,9 @@ module.exports = {
let bundledFile = contentAndComponents.fileContent,
bundleOutput;
bundledFile.components = contentAndComponents.components;
if (!_.isEmpty(contentAndComponents.components)) {
bundledFile.components = contentAndComponents.components;
}
if (!format) {
let rootFormat = parsedRootFiles.find((inputRoot) => {
return inputRoot.fileName === contentAndComponents.fileName;