Skip to content

Commit

Permalink
Merge pull request #13521 from lorand-horvath/patch-11
Browse files Browse the repository at this point in the history
docs(SchemaType): validate members are validator & message (not msg)
  • Loading branch information
vkarpov15 authored Jun 18, 2023
2 parents 1db7cf4 + b86b3ad commit 1890646
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 1890646

Please sign in to comment.