mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Safe access schema property
This commit is contained in:
@@ -2036,10 +2036,11 @@ module.exports = {
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
if (!schemaPathVar.schema) {
|
||||
if (!(schemaPathVar && schemaPathVar.schema)) {
|
||||
// no errors to show if there's no schema present in the spec
|
||||
return cb(null, []);
|
||||
}
|
||||
|
||||
this.checkValueAgainstSchema(mismatchProperty,
|
||||
transactionPathPrefix,
|
||||
pathVar.key,
|
||||
|
||||
Reference in New Issue
Block a user