diff --git a/src/MiniValidationPlus/MiniValidatorPlus.cs b/src/MiniValidationPlus/MiniValidatorPlus.cs index 930cc18..686ed09 100644 --- a/src/MiniValidationPlus/MiniValidatorPlus.cs +++ b/src/MiniValidationPlus/MiniValidatorPlus.cs @@ -700,7 +700,9 @@ private static IDictionary MapToFinalErrorsResult(Dictionary validationResults, Dictionary> 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)