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.
I wanted to ask- is there a way to create a custom validator that would return a
Vec<ValidationError>
orValidationErrors
?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!