We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ad62e4 commit f98d613Copy full SHA for f98d613
src/schema-validator.js
@@ -36,7 +36,7 @@ import {formatPath} from './format-path.js';
36
*/
37
function doItemValidation(value, schema, path) {
38
const validators = _.castArray(schema);
39
- const matchedValidators = _.filter(validators, (validator) => validator.test(value));
+ const matchedValidators = validators.filter((validator) => validator.test(value));
40
41
// No one matched, we can stop here and return an error with a proper message.
42
if (matchedValidators.length === 0) {
0 commit comments