mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Fixed validation issue where incorrect mismatches were reported for path variables
This commit is contained in:
@@ -3016,8 +3016,7 @@ module.exports = {
|
||||
var mismatchProperty = 'PATHVARIABLE',
|
||||
// all path variables defined in this path. acc. to the spec, all path params are required
|
||||
schemaPathVariables,
|
||||
pmPathVariables,
|
||||
schemaPathVar;
|
||||
pmPathVariables;
|
||||
|
||||
if (options.validationPropertiesToIgnore.includes(mismatchProperty)) {
|
||||
return callback(null, []);
|
||||
@@ -3035,7 +3034,7 @@ module.exports = {
|
||||
resolvedParamValue,
|
||||
index = _.findIndex(determinedPathVariables, pathVar);
|
||||
|
||||
schemaPathVar = _.find(schemaPathVariables, (param) => {
|
||||
const schemaPathVar = _.find(schemaPathVariables, (param) => {
|
||||
return param.name === pathVar.key;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user