Keats/validator

Question: Return multiple errors from a single custom validator

Opened this issue · 0 comments

I wanted to ask- is there a way to create a custom validator that would return a Vec<ValidationError> or ValidationErrors?

My use case is, I have a json structure as part of another struct. In a custom validator, I want to deserialize and validate it. This validation could potentially yield multiple errors that I'd like to return.

Thanks for this very useful library!