Releases: leepowelldev/mongoose-validator
Releases · leepowelldev/mongoose-validator
v2.0.0
v1.2.0
Updates
- Supports the use of extended properties to the error object. More information can be found here: http://thecodebarbarian.com/2014/12/19/mongoose-397
v1.1.1
Updates
- Better documentation around the
options.type
property - Updated test and regex to use {ARGS[0]} rather than {args.0}, as I think this keeps it more consistent with Mongooses built-in message template variables
v1.1.0
New
- Now supports the
type
property being passed into the validator - Custom error messages are now interpolated with validator arguments
Updates
- Default errors list has been updated to reflect additional methods added to validator.js
- Additional test for testing message interpolation
Other
- Small bit of refactoring