leepowelldev / mongoose-validator

Validators for mongoose models utilising validator.js
MIT License
378 stars 43 forks source link

DeprecationWarning: Implicit async custom validators (custom validators that take 2 arguments) are deprecated in mongoose >= 4.9.0 #37

Closed yuricamara closed 7 years ago

yuricamara commented 7 years ago

Hi,

I have been receiving this message when a validation process happens with mongoose-validator.

Using: "mongodb": "2.2.25", "mongoose": "4.9.4", "mongoose-validator": "1.2.5",

The message always says: See http://mongoosejs.com/docs/validation.html#async-custom-validators for more info

leepowelldev commented 7 years ago

Thanks. I'll investigate - I don't suppose you happen to have a example of this happening I could use do you?

yuricamara commented 7 years ago

This happens for any situation with Mongoose >= 4.9.0.

When you have time, check my PR, please.

leepowelldev commented 7 years ago

PR merged and published to npm. Thanks for your contribution :)

yuricamara commented 7 years ago

You're welcome!