Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Return multiple errors from a single custom validator #326

Open
tuhlmann opened this issue Apr 23, 2024 · 1 comment
Open

Question: Return multiple errors from a single custom validator #326

tuhlmann opened this issue Apr 23, 2024 · 1 comment

Comments

@tuhlmann
Copy link

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!

@joelawm
Copy link

joelawm commented Sep 6, 2024

Also wondering if this is possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants