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
I found an issue with AbstractValdiationInterceptor
var validationTasks = _validators .Select(x => x.ValidateAsync(context, cancellationToken)); await Task.WhenAll(validationTasks); var failures = validationTasks .SelectMany(x => x.Result.Errors); if (failures.Any())
I think lack to ToList() or ToArray() causes this collection to be enumerated more than once in scope of this method. Adding these or changing it to
ToList()
ToArray()
var results = await Task.WhenAll(validationTasks); var failures = results .SelectMany(x => x.Errors);
may fix the problem.
The text was updated successfully, but these errors were encountered:
[Host.FluentValidation] Duplicated error messages #192
af5b9f9
Signed-off-by: Tomasz Maruszak <maruszaktomasz@gmail.com>
edf66f2
zarusz
Successfully merging a pull request may close this issue.
I found an issue with AbstractValdiationInterceptor
I think lack to
ToList()
orToArray()
causes this collection to be enumerated more than once in scope of this method. Adding these or changing it tomay fix the problem.
The text was updated successfully, but these errors were encountered: