async-validator icon indicating copy to clipboard operation
async-validator copied to clipboard

Add `rules` to `ValidateError`

Open 07akioni opened this issue 2 years ago • 1 comments

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.

07akioni avatar Jul 10 '22 15:07 07akioni

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 image

cwjTerrace avatar Jul 11 '22 01:07 cwjTerrace