Skip to content

Commit 6098a00

Browse files
authored
Merge pull request Automattic#11185 from kerolloz/patch-1
fix(docs): add missing parameter
2 parents 84fa5ae + abd6b75 commit 6098a00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/schematype.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ SchemaType.prototype.get = function(fn) {
776776
* supports setting the `message` property to a function.
777777
*
778778
* schema.path('name').validate({
779-
* validator: function() { return v.length > 5; },
779+
* validator: function(v) { return v.length > 5; },
780780
* // `errors['name']` will be "name must have length 5, got 'foo'"
781781
* message: function(props) {
782782
* return `${props.path} must have length 5, got '${props.value}'`;

0 commit comments

Comments
 (0)