Merge branch 'develop' of github.com:postmanlabs/openapi-to-postman into split/develop/multiFileSupport

This commit is contained in:
Vishal Shingala
2022-07-12 21:11:37 +05:30
8 changed files with 450 additions and 120 deletions

View File

@@ -1416,10 +1416,6 @@ module.exports = {
}
}
bodyData = bodyObj.example;
// return example value if present else example is returned
if (bodyData.hasOwnProperty('value')) {
bodyData = bodyData.value;
}
}
else if (!_.isEmpty(bodyObj.examples) && (resolveTo === 'example' || !bodyObj.schema)) {
// take one of the examples as the body and not all