mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Fixed issue where validation was giving INVALID_TYPE instead of MISSING_IN_REQUEST if path variable is not present in transaction
This commit is contained in:
@@ -447,6 +447,8 @@ class SchemaPack {
|
||||
return transactionPathVar.key === pathVar.key;
|
||||
});
|
||||
pathVar.value = _.get(mappedPathVar, 'value', pathVar.value);
|
||||
// set _varMatched flag which represents if variable was found in transaction or not
|
||||
pathVar._varMatched = !_.isEmpty(mappedPathVar);
|
||||
});
|
||||
|
||||
// resolve $ref in all parameter objects if present
|
||||
|
||||
Reference in New Issue
Block a user