async-validator
async-validator copied to clipboard
Add `rules` to `ValidateError`
Currently it's not possible to get any relevant information of violated rules in ValidateError
.
That means it's not possible to implement some features such as log label of a field which has validation error.
I think Rules needs to add a field called state. When it returns an error, it will be returned as result, refer to Auth2.0