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

This commit is contained in:
Ankit Saini
2022-06-22 10:47:45 +05:30
3 changed files with 53 additions and 40 deletions

View File

@@ -4856,10 +4856,16 @@ module.exports = {
if (rootFormat.toLowerCase() === parse.YAML_FORMAT) {
bundledFile = parse.toYAML(bundledFile);
}
else if (rootFormat.toLowerCase() === parse.JSON_FORMAT) {
bundledFile = parse.toJSON(bundledFile, null);
}
}
else if (format.toLowerCase() === parse.YAML_FORMAT) {
bundledFile = parse.toYAML(bundledFile);
}
else if (format.toLowerCase() === parse.JSON_FORMAT) {
bundledFile = parse.toJSON(bundledFile, null);
}
return {
rootFile: { path: contentAndComponents.fileName },
bundledContent: bundledFile,