leepowelldev / mongoose-validator

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

Update lib/mongoose-validator.js #1

Closed cesconix closed 11 years ago

cesconix commented 11 years ago

Hi! This module could be more useful if for each node-validator update you won't need to update the mongoose-validator aswell. What do you think about?

leepowelldev commented 11 years ago

Thanks - a far more elegant solution. I'll review and merge asap.

cesconix commented 11 years ago

Thanks! Would be something like this: validator.validate('len', 3, 8), validator.validate('isEmail')... etc etc