Skip to content

Commit

Permalink
docs(SchemaType): validate members are validator & message (not msg)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorand-horvath authored Jun 17, 2023
1 parent 1db7cf4 commit b86b3ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/schematype.js
Original file line number Diff line number Diff line change
Expand Up @@ -810,8 +810,8 @@ SchemaType.prototype.get = function(fn) {
* // adding many validators at a time
*
* const many = [
* { validator: validator, msg: 'uh oh' }
* , { validator: anotherValidator, msg: 'failed' }
* { validator: validator, message: 'uh oh' }
* , { validator: anotherValidator, message: 'failed' }
* ]
* new Schema({ name: { type: String, validate: many }});
*
Expand Down

0 comments on commit b86b3ad

Please sign in to comment.