Skip to content

Commit 6b8b8ca

Browse files
authoredSep 6, 2019
Merge pull request #66 from technical-team/additional-props-message
Clean up error message for additionalProperties: false
2 parents 431200e + 9fedde5 commit 6b8b8ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/validate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*O
231231
delete instance[i];
232232
continue;
233233
} else {
234-
errors.push({property:path,message:(typeof value) + "The property " + i +
234+
errors.push({property:path,message:"The property " + i +
235235
" is not defined in the schema and the schema does not allow additional properties"});
236236
}
237237
}

0 commit comments

Comments
 (0)
Please sign in to comment.