Adonis validator messages

I have several rules in my validator. However, when a rule is not satisfied, it returns only the message corresponding to that rule. Would it be possible to return all unsatisfied rule messages at once?

You have to use validateAll():

Same as validate but continues to validate all fields, whereas the validate method stops on first error:

1 Like