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