You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fluent validation version 9.5.4 used to be able to validate our model successfully. Upgrading to 10.0.2 results to a failure per the exception in the title of this issue.
The stack trace is per below:
at System.ThrowHelper.ThrowArgumentOutOfRange_IndexException()
at System.Collections.Generic.List1.RemoveAt(Int32 index) at FluentValidation.Internal.CollectionPropertyRule2.GetValidatorsToExecute(ValidationContext1 context) in C:\Projects\FluentValidation\src\FluentValidation\Internal\CollectionPropertyRule.cs:line 335 at FluentValidation.Internal.CollectionPropertyRule2.FluentValidation.IValidationRuleInternal.Validate(ValidationContext1 context) in C:\Projects\FluentValidation\src\FluentValidation\Internal\CollectionPropertyRule.cs:line 125 at FluentValidation.AbstractValidator1.Validate(ValidationContext1 context) in C:\Projects\FluentValidation\src\FluentValidation\AbstractValidator.cs:line 92 at FluentValidation.AbstractValidator1.Validate(T instance) in C:\Projects\FluentValidation\src\FluentValidation\AbstractValidator.cs:line 62
Steps to Reproduce
The model that used to be validated successfully by FluentValidation ver 9.5.4 looks like the following code snippet:
FluentValidation version
10.0.2
ASP.NET version
.net core 3.1
Summary
The fluent validation version 9.5.4 used to be able to validate our model successfully. Upgrading to 10.0.2 results to a failure per the exception in the title of this issue.
The stack trace is per below:
Steps to Reproduce
The model that used to be validated successfully by FluentValidation ver 9.5.4 looks like the following code snippet:
Version 10.0.2 fails to validate this model. The validator's code is per below:
The text was updated successfully, but these errors were encountered: