Skip to content

Commit

Permalink
Keyword select: passContext while validating
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix He committed Jul 10, 2020
1 parent dfce7d2 commit c70f5c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keywords/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function defFunc(ajv) {
var validate = compiled.cases[schema];
if (validate === undefined) validate = compiled.default;
if (typeof validate == 'boolean') return validate;
var valid = validate(data);
var valid = validate.call(this, data);
if (!valid) v.errors = validate.errors;
return valid;
},
Expand Down

0 comments on commit c70f5c8

Please sign in to comment.