talyssonoc/structure

Custom validation message

kushubham9 opened this issue · 1 comments

When I validate raw data against my defined structure, a generalized failure message is returned. {path,message}

Can I set a custom message for each attribute rule? That would be very helpful in building API responses.

It seems like an interesting idea, would you be willing to submit a PR for that?