diff --git a/src/schema-validator.js b/src/schema-validator.js index 02d90c4a..a0ed273f 100644 --- a/src/schema-validator.js +++ b/src/schema-validator.js @@ -104,7 +104,7 @@ function validateArrayItem(item, idx, schema, current) { return [{path, message: `"${formatPath(path)}" is undefined.`}]; } - if (_.isNull(item)) { + if (item === null) { return [{path, message: `"${formatPath(path)}" is null.`}]; }