poppinss / indicative

Indicative is a simple yet powerful data validator for Node.js and browsers. It makes it so simple to write async validations on nested set of data.
https://indicative.adonisjs.com/
MIT License
417 stars 52 forks source link

All validation errors for a single value? #100

Closed gpa closed 7 years ago

gpa commented 7 years ago

ValidateAll does an early exit when the first validator rejects the value, is there a feature that will generate messages for all the errors? For example:

{
 username: 'required|alpha_numeric|min:6|max:15'
}

0!aa: Username must be alphanumeric Username must be at least 6 characters long

thetutlage commented 7 years ago

Will add that functionality too