mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Merge branch 'split/develop/multiFileSupport' of github.com:postmanlabs/openapi-to-postman into feature/add-reference-map-bundle
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user