NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #58 most downloaded on NuGet
A validation library for .NET that uses a fluent interface to construct strongly-typed validation rules.
Latest stable
12.2.0
Last release 1 months ago
10 Oct 2026
Release timing varies
gaps range from 4 weeks to 10 months
Nearly every release is documented
notes for 59 of the last 60 stable releases
15 versions withdrawn
withdrawn after publishing
127 years old
192 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
FluentValidation 12 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-12.html
FluentValidation 12 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-12.html
Full release notes can be found at https://github.com/FluentValidation/FluentValidation/releases
Please read the upgrade guide if you are moving from 11.x to 12.x
Binaries can be downloaded from nuget:
Your coding agent can read these notes before it upgrades. Set up the MCP server →
FluentValidation 12 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-12.html
FluentValidation 12 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-12.html
Full release notes can be found at https://github.com/FluentValidation/FluentValidation/releases
Fix casing of Microsoft.Extensions.DependencyInjection.Abstractions dependency (#2344)
FluentValidation 12 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-12.html
FluentValidation 12 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-12.html
Full release notes can be found at https://github.com/FluentValidation/FluentValidation/releases
Please read the upgrade guide if you are moving from 11.x to 12.x
Binaries can be downloaded from nuget:
Add Tamil language (#2334) Add Telugu language (#2333) Fixes to Japanese tranlations (#2340)
FluentValidation 12 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-12.html
FluentValidation 12 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-12.html
Full release notes can be found at https://github.com/FluentValidation/FluentValidation/releases
Please read the upgrade guide if you are moving from 11.x to 12.x
Binaries can be downloaded from nuget:
FluentValidation 12.0 is a major release that included several breaking changes. Please review this document carefully before upgrading from FluentValidation 11.x to 12.
The main goal of this release was removal of deprecated code and removal of support for obsolete platforms. There are no new features in this release.
Support for the following platforms has been removed:
.NET Core 3.1 (Microsoft’s support ended in December 2022)
.NET 5 (Microsoft’s support ended in November 2022)
.NET 6 (Microsoft’s support ended in November 2024)
.NET 7 (Microsoft’s support ended in November 2024)
.NET Standard 2.0/2.1
.NET 8 is now the minimum supported version.
If you still need .NET Standard 2.0 compatibility then you will need to continue to use FluentValidation 11.x and only upgrade to FluentValidation 12 once you’ve moved to a more modern version of .NET.
The Transform and TransformForEach methods deprecated in 11.x have been removed. For details on how to migrate see https://github.com/FluentValidation/FluentValidation/issues/2072
The StopOnFirstFailure cascade option was deprecated in FluentValidation 11.0 and has now been removed, along with the AbstractValidator.CascadeMode and ValidatorOptions.Global.CascadeMode properties which were also deprecated in 11.0.
If were previously setting ValidatorOptions.Global.CascadeMode to Continue or Stop , you can simply replace this with the following:
ValidatorOptions . Global . DefaultClassLevelCascadeMode = CascadeMode . < YourCurrentValue > ; ValidatorOptions . Global . DefaultRuleLevelCascadeMode = CascadeMode . < YourCurrentValue > ;
If you were previously setting it to StopOnFirstFailure , replace it with the following:
ValidatorOptions . Global . DefaultRuleLevelCascadeMode = CascadeMode . Stop ;
Similarly, if you were previously setting AbstractValidator.CascadeMode to Continue or Stop , replace this with the following:
ClassLevelCascadeMode = CascadeMode . < YourCurrentValue > ; RuleLevelCascadeMode = CascadeMode . < YourCurrentValue > ;
If you were previously setting it to StopOnFirstFailure , replace it with the following:
ClassLevelCascadeMode = CascadeMode . Continue ; RuleLevelCascadeMode = CascadeMode . Stop ;
If you were calling .Cascade(CascadeMode.StopOnFirstFailure) in a rule chain, replace StopOnFirstFailure with Stop .
The InjectValidator method was deprecated in 11.x and removed in 12.0.
This method allowed you to implicitly inject a child validator from the ASP.NET Service Provider:
public class PersonValidator : AbstractValidator < Person > { public PersonValidator () { RuleFor ( x => x . Address ). InjectValidator (); } }
Assuming that the address property is of type Address , the above code would attempt to resolve an IValidator<Address> and use this to validator the Address property. This method can only be used when working with ASP.NET MVC’s auto-validation feature and cannot be used in other contexts.
Instead of using InjectValidator , you should instead use a more traditional constructor injection approach, which is not just limited to ASP.NET MVC:
public class PersonValidator : AbstractValidator < Person > { public PersonValidator ( IValidator < Address > addressValidator ) { RuleFor ( x => x . Address ). SetValidator ( addressValidator ); } }
In previous versions of FluentValidation it was possible to override the AbstractValidator.EnsureInstanceNotNull method to disable FluentValidation’s root-model null check. The ability to do this was deprecated in 11.5.x and has now been removed. For further details please see https://github.com/FluentValidation/FluentValidation/issues/2069
The existing Serbian translations have been renamed to Serbian (Latin) and are now available under the sr-Latn language code. A new Serbian (Cyrillic) language has been added, which is now the default for the sr language code.
The ITestValidationContinuation interface now exposes a MatchedFailures property (as well as the existing UnmatchedFailures )
The ShouldHaveAnyValidationError method has been renamed to ShouldHaveValidationErrors
ShouldNotHaveAnyValidationErrors and ShouldHaveValidationErrors are now instance methods on TestValidationResult , instead of extension methods.
FluentValidation 12 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-12.html
FluentValidation 12 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-12.html
Full release notes can be found at https://github.com/FluentValidation/FluentValidation/releases
FluentValidation 11 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-11.html
FluentValidation 11 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-11.html
Full release notes can be found at https://github.com/FluentValidation/FluentValidation/releases
FluentValidation 11 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-11.html
FluentValidation 11 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-11.html
Full release notes can be found at https://github.com/FluentValidation/FluentValidation/releases
Please read the upgrade guide if you are moving from 10.x to 11.x
ScalePrecisionValidator error message clarification (#2211)NullReferenceException (#2152)RuleFor(x => x)) (#2168)AddValidatorsFromAssemblyContaining from registering validators twice (#2182)AbstractValidator.OnRuleAdded to allow customization of rule instances after creation (#2114)AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)Transform and TransformAsync methods (See #2072 for migration steps)ScalePrecision validator and introduce PrecisionScale validator as its replacement (#2030)StringSyntaxAttribute.Regex in net7 builds (#1957)MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)Include calls with the MemberNameValidatorSelector (#1989)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
FluentValidation 11 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-11.html
FluentValidation 11 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-11.html
Full release notes can be found at https://github.com/FluentValidation/FluentValidation/releases
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
ScalePrecisionValidator error message clarification (#2211)NullReferenceException (#2152)RuleFor(x => x)) (#2168)AddValidatorsFromAssemblyContaining from registering validators twice (#2182)AbstractValidator.OnRuleAdded to allow customization of rule instances after creation (#2114)AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)Transform and TransformAsync methods (See #2072 for migration steps)ScalePrecision validator and introduce PrecisionScale validator as its replacement (#2030)StringSyntaxAttribute.Regex in net7 builds (#1957)MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)Include calls with the MemberNameValidatorSelector (#1989)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
FluentValidation 11 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-11.html
FluentValidation 11 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-11.html
Full release notes can be found at https://github.com/FluentValidation/FluentValidation/releases
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
ScalePrecisionValidator error message clarification (#2211)NullReferenceException (#2152)RuleFor(x => x)) (#2168)AddValidatorsFromAssemblyContaining from registering validators twice (#2182)AbstractValidator.OnRuleAdded to allow customization of rule instances after creation (#2114)AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)Transform and TransformAsync methods (See #2072 for migration steps)ScalePrecision validator and introduce PrecisionScale validator as its replacement (#2030)StringSyntaxAttribute.Regex in net7 builds (#1957)MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)Include calls with the MemberNameValidatorSelector (#1989)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
FluentValidation 11 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-11.html
FluentValidation 11 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-11.html
Full release notes can be found at https://github.com/FluentValidation/FluentValidation/releases
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
Fix issue with CascadeMode on child validators (#2207)
NullReferenceException (#2152)RuleFor(x => x)) (#2168)AddValidatorsFromAssemblyContaining from registering validators twice (#2182)AbstractValidator.OnRuleAdded to allow customization of rule instances after creation (#2114)AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)Transform and TransformAsync methods (See #2072 for migration steps)ScalePrecision validator and introduce PrecisionScale validator as its replacement (#2030)StringSyntaxAttribute.Regex in net7 builds (#1957)MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)Include calls with the MemberNameValidatorSelector (#1989)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
FluentValidation 11 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-11.html
FluentValidation 11 is a major release. Please read the upgrade guide at https://docs.fluentvalidation.net/en/latest/upgrading-to-11.html
Full release notes can be found at https://github.com/FluentValidation/FluentValidation/releases
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
NullReferenceException (#2152)RuleFor(x => x)) (#2168)AddValidatorsFromAssemblyContaining from registering validators twice (#2182)AbstractValidator.OnRuleAdded to allow customization of rule instances after creation (#2114)AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)Transform and TransformAsync methods (See #2072 for migration steps)ScalePrecision validator and introduce PrecisionScale validator as its replacement (#2030)StringSyntaxAttribute.Regex in net7 builds (#1957)MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)Include calls with the MemberNameValidatorSelector (#1989)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
Fix memory leak in NotEmptyValidator/EmptyValidator (#2174) Add more descriptive error messages if a rule throws a NullReferenceException (#2152) Add support for caching root parameter expressions (eg RuleFor(x => x)) (#2168) Add builds for .net 8 Prevent AddValidatorsFromAssemblyContaining from registering validators twice (#2182)
Deprecated the ability to disable the root model null check via overriding AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
AbstractValidator.OnRuleAdded to allow customization of rule instances after creation (#2114)AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)Transform and TransformAsync methods (See #2072 for migration steps)ScalePrecision validator and introduce PrecisionScale validator as its replacement (#2030)StringSyntaxAttribute.Regex in net7 builds (#1957)MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)Include calls with the MemberNameValidatorSelector (#1989)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
Deprecated the ability to disable the root model null check via overriding AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
AbstractValidator.OnRuleAdded to allow customization of rule instances after creation (#2114)AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)Transform and TransformAsync methods (See #2072 for migration steps)ScalePrecision validator and introduce PrecisionScale validator as its replacement (#2030)StringSyntaxAttribute.Regex in net7 builds (#1957)MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)Include calls with the MemberNameValidatorSelector (#1989)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
Deprecated the ability to disable the root model null check via overriding AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)Transform and TransformAsync methods (See #2072 for migration steps)ScalePrecision validator and introduce PrecisionScale validator as its replacement (#2030)StringSyntaxAttribute.Regex in net7 builds (#1957)MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)Include calls with the MemberNameValidatorSelector (#1989)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
Deprecated the ability to disable the root model null check via overriding AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)Transform and TransformAsync methods (See #2072 for migration steps)ScalePrecision validator and introduce PrecisionScale validator as its replacement (#2030)StringSyntaxAttribute.Regex in net7 builds (#1957)MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)Include calls with the MemberNameValidatorSelector (#1989)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
Deprecated the ability to disable the root model null check via overriding AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)Transform and TransformAsync methods (See #2072 for migration steps)ScalePrecision validator and introduce PrecisionScale validator as its replacement (#2030)StringSyntaxAttribute.Regex in net7 builds (#1957)MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)Include calls with the MemberNameValidatorSelector (#1989)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
Deprecated the ability to disable the root model null check via overriding AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)Transform and TransformAsync methods (See #2072 for migration steps)ScalePrecision validator and introduce PrecisionScale validator as its replacement (#2030)StringSyntaxAttribute.Regex in net7 builds (#1957)MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)Include calls with the MemberNameValidatorSelector (#1989)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
Resolve issue with ruleset propogation for multiple levels of child rules (#2097)
Deprecated the ability to disable the root model null check via overriding AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
AbstractValidator.EnsureInstanceNotNull (See #2069 for migration steps)Transform and TransformAsync methods (See #2072 for migration steps)ScalePrecision validator and introduce PrecisionScale validator as its replacement (#2030)StringSyntaxAttribute.Regex in net7 builds (#1957)MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)Include calls with the MemberNameValidatorSelector (#1989)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
Deprecated the ability to disable the root model null check via overriding AbstractValidator.EnsureInstanceNotNull (#2069) Deprecated the Transform and TransformAsync methods (#2072)
Deprecate ScalePrecision validator and introduce PrecisionScale validator as its replacement
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
ScalePrecision validator and introduce PrecisionScale validator as its replacement (#2030)StringSyntaxAttribute.Regex in net7 builds (#1957)MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)Include calls with the MemberNameValidatorSelector (#1989)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
Deprecate ScalePrecision validator and introduce PrecisionScale validator as its replacement
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
ScalePrecision validator and introduce PrecisionScale validator as its replacement (#2030)StringSyntaxAttribute.Regex in net7 builds (#1957)MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)Include calls with the MemberNameValidatorSelector (#1989)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
MVC auto validation: Deprecated Implicit validation of child properties
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
StringSyntaxAttribute.Regex in net7 builds (#1957)MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)Include calls with the MemberNameValidatorSelector (#1989)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
MVC auto validation: Deprecated Implicit validation of child properties
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
MemberNameValidatorSelector should make use of PropertyNameResolver when parsing expressions (#2003)Only() not taking into account parent-level unmatched failures (#1986)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
MVC auto validation: Deprecated Implicit validation of child properties
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
Only() not taking into account parent-level unmatched failures (#1986)ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
MVC auto validation: Deprecated Implicit validation of child properties
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
MVC auto validation: Deprecated Implicit validation of child properties
Please read the upgrade guide if you are moving from 10.x to 11.x
Note that the after 11.1.0 release, the FluentValidation.AspNetCore package has been moved to a separate repository and is now versioned and released separately. These release notes now only apply to the core FluentValidation package. For FluentValidation.AspNetCore release notes, please visit the FluentValidation.AspNetCore repository.
ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
MVC auto validation: Deprecated Implicit validation of child properties
Please read the upgrade guide if you are moving from 10.x to 11.x
ToDictionary method to ValidationResult (particularly useful when working with Minimal APIs)-InjectValidator (#1960)IValidatorFactory and ServiceProviderValidatorFactory (#1961)services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965)AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
Added a ToDictionary method to ValidationResult MVC auto validation: Deprecated Implicit validation of child properties (#1960) MVC auto validation: Deprecated Implicit validation of root collection elements (#1960) Deprecated InjectValidator (#1960) Deprecate validator factories (#1961) Introduce services.AddFluentValidationAutoValidation() and services.AddFluentValidationClientsideAdapters() as replacements for services.AddFluentValidation() (#1965) Remove duplication between sync and async validation in the internal model.
Removal deprecated OnFailure/OnAnyFailure callbacks.
Please read the upgrade guide if you are moving from 10.x to 11.x
AsyncValidatorInvokedSynchronouslyException being incorrectly thrown when the top-level When method with RuleForEach, even when invoked asynchronously (#1955)ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
Fix an issue where an exception would be thrown when calling ValidateAsync if a rule was wrapped with a call to WhenAsync. (#1955)
Removal deprecated OnFailure/OnAnyFailure callbacks.
Please read the upgrade guide if you are moving from 10.x to 11.x
ValidationResult using System.Text.Json (#1928)With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
Child validator contexts should contain a reference to their parent context (#1945) Support deserialization of ValidationResult using System.Text.Json (#1928)
Removal deprecated OnFailure/OnAnyFailure callbacks.
Please read the upgrade guide if you are moving from 10.x to 11.x
With* and Without* assertion methods (#1937)RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
Removal deprecated OnFailure/OnAnyFailure callbacks.
Please read the upgrade guide if you are moving from 10.x to 11.x
RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration.Options property from RuleComponent.PropertyValidator backwards compatibility layer.Only() to the test helper asserting that no other validation errors were raised.Binaries can be downloaded from nuget:
Ensure property covariance is properly handled throughout the internal model (#1713) Throw exceptions when async validator is invoked synchronously (#1705) Removal deprecated OnFailure/OnAnyFailure callbacks. Remove deprecated RunDefaultMvcValidationAfterFluentValidationExecutes option from ASP.NET integration. Remove deprecated Options property from RuleComponent. Remove deprecated TestHelper methods. Remove PropertyValidator backwards compatibility layer. Add method Only() asserting that no other validation errors were raised.
Deprecate the old test helper methods in favour of TestValidate.
Please read the upgrade guide if you are moving from 9.x to 10.x
RuleSetForClientSideMessagesAttribute and HttpContext.SetRulesetForClientsideMessages (#1912)DisableAutomaticValidation to true should prevent implicit validation running (#1868)ValidateAndThrow not working in some scenarios where context creation requires type conversion (#1863).TestValidate (#1815)ScalePrecision error message when digits is calculated as negative (#1790)TestValidate.OnFailure and OnAnyFailure callbacks.AddFluentValidation as well as directly on the service collection (#1748)RuleForEach and RuleFor.ForEach (#1231)AddFluentValidation to be called directly on IServiceCollection (#1726)ValidateAndThrow even if PreValidate prevents further validation (#1736)ValidationException now includes rule severity (#1733)RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Deprecate the old test helper methods in favour of TestValidate.
Please read the upgrade guide if you are moving from 9.x to 10.x
DisableAutomaticValidation to true should prevent implicit validation running (#1868)ValidateAndThrow not working in some scenarios where context creation requires type conversion (#1863).TestValidate (#1815)ScalePrecision error message when digits is calculated as negative (#1790)TestValidate.OnFailure and OnAnyFailure callbacks.AddFluentValidation as well as directly on the service collection (#1748)RuleForEach and RuleFor.ForEach (#1231)AddFluentValidation to be called directly on IServiceCollection (#1726)ValidateAndThrow even if PreValidate prevents further validation (#1736)ValidationException now includes rule severity (#1733)RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Deprecate the old test helper methods in favour of TestValidate.
Please read the upgrade guide if you are moving from 9.x to 10.x
ValidateAndThrow not working in some scenarios where context creation requires type conversion (#1863).TestValidate (#1815)ScalePrecision error message when digits is calculated as negative (#1790)TestValidate.OnFailure and OnAnyFailure callbacks.AddFluentValidation as well as directly on the service collection (#1748)RuleForEach and RuleFor.ForEach (#1231)AddFluentValidation to be called directly on IServiceCollection (#1726)ValidateAndThrow even if PreValidate prevents further validation (#1736)ValidationException now includes rule severity (#1733)RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Fixed ThrowOnFailures not being passed through if context creation requires type conversion (#1863).
Deprecate the old test helper methods in favour of TestValidate.
Please read the upgrade guide if you are moving from 9.x to 10.x
TestValidate (#1815)ScalePrecision error message when digits is calculated as negative (#1790)TestValidate.OnFailure and OnAnyFailure callbacks.AddFluentValidation as well as directly on the service collection (#1748)RuleForEach and RuleFor.ForEach (#1231)AddFluentValidation to be called directly on IServiceCollection (#1726)ValidateAndThrow even if PreValidate prevents further validation (#1736)ValidationException now includes rule severity (#1733)RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Clientside messages shouldn't be generated for the lazy version of LessThanOrEqual/GreaterThanOrEqual (#1818) Remove enumerable boxing in Empty/NotEmpty validators (#1823)
Deprecate the old test helper methods in favour of TestValidate.
Please read the upgrade guide if you are moving from 9.x to 10.x
TestValidate (#1815)ScalePrecision error message when digits is calculated as negative (#1790)TestValidate.OnFailure and OnAnyFailure callbacks.AddFluentValidation as well as directly on the service collection (#1748)RuleForEach and RuleFor.ForEach (#1231)AddFluentValidation to be called directly on IServiceCollection (#1726)ValidateAndThrow even if PreValidate prevents further validation (#1736)ValidationException now includes rule severity (#1733)RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Deprecate the old test helper methods in favour of TestValidate.
Please read the upgrade guide if you are moving from 9.x to 10.x
TestValidate (#1815)ScalePrecision error message when digits is calculated as negative (#1790)TestValidate.OnFailure and OnAnyFailure callbacks.AddFluentValidation as well as directly on the service collection (#1748)RuleForEach and RuleFor.ForEach (#1231)AddFluentValidation to be called directly on IServiceCollection (#1726)ValidateAndThrow even if PreValidate prevents further validation (#1736)ValidationException now includes rule severity (#1733)RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Deprecate the old test helper methods in favour of TestValidate.
Please read the upgrade guide if you are moving from 9.x to 10.x
ScalePrecision error message when digits is calculated as negative (#1790)TestValidate.OnFailure and OnAnyFailure callbacks.AddFluentValidation as well as directly on the service collection (#1748)RuleForEach and RuleFor.ForEach (#1231)AddFluentValidation to be called directly on IServiceCollection (#1726)ValidateAndThrow even if PreValidate prevents further validation (#1736)ValidationException now includes rule severity (#1733)RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Fix scale precision error message when digits is calculated as negative (#1790) Shared conditions shouldn't rely on object hashcode for unique ID (#1810)
Deprecate the old test helper methods in favour of TestValidate.
Please read the upgrade guide if you are moving from 9.x to 10.x
TestValidate.OnFailure and OnAnyFailure callbacks.AddFluentValidation as well as directly on the service collection (#1748)RuleForEach and RuleFor.ForEach (#1231)AddFluentValidation to be called directly on IServiceCollection (#1726)ValidateAndThrow even if PreValidate prevents further validation (#1736)ValidationException now includes rule severity (#1733)RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Update Russian translations (#1761) Add Thai translations (#1768) Add Azerbaijani translations (#1770) Deprecate the old test helper methods in favour of TestValidate. Deprecate OnFailure and OnAnyFailure callbacks.
Deprecate RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.
Please read the upgrade guide if you are moving from 9.x to 10.x
AddFluentValidation as well as directly on the service collection (#1748)RuleForEach and RuleFor.ForEach (#1231)AddFluentValidation to be called directly on IServiceCollection (#1726)ValidateAndThrow even if PreValidate prevents further validation (#1736)ValidationException now includes rule severity (#1733)RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Deprecate RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.
Please read the upgrade guide if you are moving from 9.x to 10.x
AddFluentValidation as well as directly on the service collection (#1748)RuleForEach and RuleFor.ForEach (#1231)AddFluentValidation to be called directly on IServiceCollection (#1726)ValidateAndThrow even if PreValidate prevents further validation (#1736)ValidationException now includes rule severity (#1733)RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Add backwards compatibility overloads for validator registration methods.
Deprecate RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.
Please read the upgrade guide if you are moving from 9.x to 10.x
AddFluentValidation as well as directly on the service collection (#1748)RuleForEach and RuleFor.ForEach (#1231)AddFluentValidation to be called directly on IServiceCollection (#1726)ValidateAndThrow even if PreValidate prevents further validation (#1736)ValidationException now includes rule severity (#1733)RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Optional internal type registration should work with MVC registration (#1748)
Deprecate RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.
Please read the upgrade guide if you are moving from 9.x to 10.x
RuleForEach and RuleFor.ForEach (#1231)AddFluentValidation to be called directly on IServiceCollection (#1726)ValidateAndThrow even if PreValidate prevents further validation (#1736)ValidationException now includes rule severity (#1733)RunDefaultMvcValidationAfterFluentValidationExecutes in MVC configuration. Use DisableDataAnnotationsValidation instead.ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Deprecated non-generic PropertyValidator.
Please read the upgrade guide if you are moving from 9.x to 10.x
ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Deprecated non-generic PropertyValidator.
Please read the upgrade guide if you are moving from 9.x to 10.x
ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Deprecated non-generic PropertyValidator.
Please read the upgrade guide if you are moving from 9.x to 10.x
ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Deprecated non-generic PropertyValidator.
Please read the upgrade guide if you are moving from 9.x to 10.x
ErrorCode is now exposed on IRuleComponentGetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Deprecated non-generic PropertyValidator.
Please read the upgrade guide if you are moving from 9.x to 10.x
GetPropertyValue to IValidationRule to support #1688IValidationRule<T>.ApplyCondition/ApplyAsyncCondition for users of the internal APIPropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Add GetPropertyValue method to IValidationRule<T> Fix context parameter types on IValidationRule.ApplyCondition and ApplyAsyncCondition.
Deprecated non-generic PropertyValidator.
Please read the upgrade guide if you are moving from 9.x to 10.x
PropertyValidator.ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure>RuleComponents.ValidatorDescriptor now returns rule components in various places, where PropertyValidators were previously returnedScoped rather than Transient.IActionContextValidatorInterceptor and IValidatorInterceptor.IStringSource and its inheritors.FormattedMessageArguments from ValidationFailure.Binaries can be downloaded from nuget:
Please review the upgrade guide for 10.0: https://docs.fluentvalidation.net/en/latest/upgrading-to-10.html Performance improvements. Collection rules now only iterate the collection once. Property validators are now generic. Internal API now uses generics. Deprecated non-generic PropertyValidator. Various property validator options have been seperated into RuleComponents. Various parts of the internal API are now internal (PropertyRule, CollectionPropertyRule etc). ValidatorDescriptor now returns rule components in various places. Changed type of ValidationResult.Errors from IList<ValidationFailure> to List<ValidationFailure> Default service lifetime is now Scoped rather than Transient. Combine IActionContextValidatorInterceptor and IValidatorInterceptor. Changes to the ASP.NET Client Validator Adaptor interfaces. These now receive the rule component. Removed deprecated IStringSource and its inheritors. Removed deprecated FormattedMessageArguments from ValidationFailure. Removed other deprecated code.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fix incorrect wording in deprecation message for Transform
Please read the upgrade guide if you are moving from 8.x to 9.x
Transform that receives the root object in the transformer.CascadeMode.StopOnFirstFailure deprecation warning.// Validate specific rulesets
validator.Validate(instance, opt => {
opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet");
// Can also force rules not in a ruleset to be run
opt.IncludeRulesNotInRuleSet();
});
// Validate specific properties
validator.Validate(instance, opt => {
opt.IncludeProperties("Forename", "Surname");
// or
opt.IncludeProperties(x => x.Surname, x.Forename);
});
// Throw exceptions on failure
validator.Validate(instance, opt => {
opt.ThrowOnFailures();
});
// Combine various options
validator.Validate(instance, opt => {
opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet").IncludeRulesNotInRuleSet();
opt.ThrowOnFailures();
});
Binaries can be downloaded from nuget:
Fix incorrect wording in deprecation message for Transform
Please read the upgrade guide if you are moving from 8.x to 9.x
Transform that receives the root object in the transformer.CascadeMode.StopOnFirstFailure deprecation warning.// Validate specific rulesets
validator.Validate(instance, opt => {
opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet");
// Can also force rules not in a ruleset to be run
opt.IncludeRulesNotInRuleSet();
});
// Validate specific properties
validator.Validate(instance, opt => {
opt.IncludeProperties("Forename", "Surname");
// or
opt.IncludeProperties(x => x.Surname, x.Forename);
});
// Throw exceptions on failure
validator.Validate(instance, opt => {
opt.ThrowOnFailures();
});
// Combine various options
validator.Validate(instance, opt => {
opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet").IncludeRulesNotInRuleSet();
opt.ThrowOnFailures();
});
Binaries can be downloaded from nuget:
Fix incorrect wording in deprecation message for Transform
Please read the upgrade guide if you are moving from 8.x to 9.x
Transform that receives the root object in the transformer.CascadeMode.StopOnFirstFailure deprecation warning.// Validate specific rulesets
validator.Validate(instance, opt => {
opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet");
// Can also force rules not in a ruleset to be run
opt.IncludeRulesNotInRuleSet();
});
// Validate specific properties
validator.Validate(instance, opt => {
opt.IncludeProperties("Forename", "Surname");
// or
opt.IncludeProperties(x => x.Surname, x.Forename);
});
// Throw exceptions on failure
validator.Validate(instance, opt => {
opt.ThrowOnFailures();
});
// Combine various options
validator.Validate(instance, opt => {
opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet").IncludeRulesNotInRuleSet();
opt.ThrowOnFailures();
});
Binaries can be downloaded from nuget:
Fix incorrect wording in deprecation message for Transform
Please read the upgrade guide if you are moving from 8.x to 9.x
Transform that receives the root object in the transformer.CascadeMode.StopOnFirstFailure deprecation warning.// Validate specific rulesets
validator.Validate(instance, opt => {
opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet");
// Can also force rules not in a ruleset to be run
opt.IncludeRulesNotInRuleSet();
});
// Validate specific properties
validator.Validate(instance, opt => {
opt.IncludeProperties("Forename", "Surname");
// or
opt.IncludeProperties(x => x.Surname, x.Forename);
});
// Throw exceptions on failure
validator.Validate(instance, opt => {
opt.ThrowOnFailures();
});
// Combine various options
validator.Validate(instance, opt => {
opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet").IncludeRulesNotInRuleSet();
opt.ThrowOnFailures();
});
Binaries can be downloaded from nuget:
Introduce new syntax for applying transformations and deprecate the old syntax
Please read the upgrade guide if you are moving from 8.x to 9.x
CascadeMode.StopOnFirstFailure deprecation warning.// Validate specific rulesets
validator.Validate(instance, opt => {
opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet");
// Can also force rules not in a ruleset to be run
opt.IncludeRulesNotInRuleSet();
});
// Validate specific properties
validator.Validate(instance, opt => {
opt.IncludeProperties("Forename", "Surname");
// or
opt.IncludeProperties(x => x.Surname, x.Forename);
});
// Throw exceptions on failure
validator.Validate(instance, opt => {
opt.ThrowOnFailures();
});
// Combine various options
validator.Validate(instance, opt => {
opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet").IncludeRulesNotInRuleSet();
opt.ThrowOnFailures();
});
Binaries can be downloaded from nuget:
Deprecate IStringSource and its implementors. Use delegates instead.
Please read the upgrade guide if you are moving from 8.x to 9.x
CascadeMode.StopOnFirstFailure deprecation warning.// Validate specific rulesets
validator.Validate(instance, opt => {
opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet");
// Can also force rules not in a ruleset to be run
opt.IncludeRulesNotInRuleSet();
});
// Validate specific properties
validator.Validate(instance, opt => {
opt.IncludeProperties("Forename", "Surname");
// or
opt.IncludeProperties(x => x.Surname, x.Forename);
});
// Throw exceptions on failure
validator.Validate(instance, opt => {
opt.ThrowOnFailures();
});
// Combine various options
validator.Validate(instance, opt => {
opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet").IncludeRulesNotInRuleSet();
opt.ThrowOnFailures();
});
Binaries can be downloaded from nuget:
Deprecate IStringSource and its implementors. Use delegates instead.
Please read the upgrade guide if you are moving from 8.x to 9.x
CascadeMode.StopOnFirstFailure deprecation warning.// Validate specific rulesets
validator.Validate(instance, opt => {
opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet");
// Can also force rules not in a ruleset to be run
opt.IncludeRulesNotInRuleSet();
});
// Validate specific properties
validator.Validate(instance, opt => {
opt.IncludeProperties("Forename", "Surname");
// or
opt.IncludeProperties(x => x.Surname, x.Forename);
});
// Throw exceptions on failure
validator.Validate(instance, opt => {
opt.ThrowOnFailures();
});
// Combine various options
validator.Validate(instance, opt => {
opt.IncludeRuleSets("MyRuleSet", "SomeOtherRuleSet").IncludeRulesNotInRuleSet();
opt.ThrowOnFailures();
});
Binaries can be downloaded from nuget:
Nothing published for this version
One column per quarter.