We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 84fa5ae + abd6b75 commit 6098a00Copy full SHA for 6098a00
lib/schematype.js
@@ -776,7 +776,7 @@ SchemaType.prototype.get = function(fn) {
776
* supports setting the `message` property to a function.
777
*
778
* schema.path('name').validate({
779
- * validator: function() { return v.length > 5; },
+ * validator: function(v) { return v.length > 5; },
780
* // `errors['name']` will be "name must have length 5, got 'foo'"
781
* message: function(props) {
782
* return `${props.path} must have length 5, got '${props.value}'`;
0 commit comments