mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Make sure that request body has 'schema' property before checking for type and format
This commit is contained in:
@@ -1875,7 +1875,7 @@ module.exports = {
|
||||
|
||||
if (
|
||||
bodyType &&
|
||||
contentObj[bodyType].hasOwnProperty('schema') &&
|
||||
!_.isEmpty(_.get(contentObj, [bodyType, 'schema'])) &&
|
||||
contentObj[bodyType].schema.type === 'string' &&
|
||||
contentObj[bodyType].schema.format === 'binary'
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user