Skip to content

Commit

Permalink
Fix processing of ValidationResult.Success
Browse files Browse the repository at this point in the history
  • Loading branch information
luboshl committed Jul 26, 2024
1 parent 747743e commit b9e2f91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MiniValidationPlus/MiniValidatorPlus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,9 @@ private static IDictionary<string, string[]> MapToFinalErrorsResult(Dictionary<s

private static void ProcessValidationResults(IEnumerable<ValidationResult> validationResults, Dictionary<string, List<string>> errors, string? prefix)
{
foreach (var result in validationResults)
var failedValidationResults = validationResults.Where(x => x != ValidationResult.Success);

foreach (var result in failedValidationResults)
{
var hasMemberNames = false;
foreach (var memberName in result.MemberNames)
Expand Down

0 comments on commit b9e2f91

Please sign in to comment.