We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
10.1.0
.Net Core 3.1
When adding an error in PreValidate the ValidateAndThrow() method does only throw when PreValidate returns true. Not when it returns false.
PreValidate
ValidateAndThrow()
true
false
This is very unexpected and probably an oversight. The validation failed and the method should throw. https://docs.fluentvalidation.net/en/latest/advanced.html#prevalidate
BR Matthias
No response
The text was updated successfully, but these errors were encountered:
Thanks for reporting this, I’ll look at getting that changed for a future version.
Sorry, something went wrong.
No branches or pull requests
FluentValidation version
10.1.0
ASP.NET version
.Net Core 3.1
Summary
When adding an error in
PreValidate
theValidateAndThrow()
method does only throw whenPreValidate
returnstrue
. Not when it returnsfalse
.This is very unexpected and probably an oversight. The validation failed and the method should throw.
https://docs.fluentvalidation.net/en/latest/advanced.html#prevalidate
BR Matthias
Steps to Reproduce
No response
The text was updated successfully, but these errors were encountered: