From b86b3add9a9bcbd0974399ff80ee9490ae35cd6b Mon Sep 17 00:00:00 2001 From: Lorand Horvath <72015221+lorand-horvath@users.noreply.github.com> Date: Sat, 17 Jun 2023 17:28:47 +0300 Subject: [PATCH] docs(SchemaType): validate members are validator & message (not msg) --- lib/schematype.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/schematype.js b/lib/schematype.js index 709913a8f8a..76664b77529 100644 --- a/lib/schematype.js +++ b/lib/schematype.js @@ -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 }}); *