NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #132 most downloaded on NuGet
Dependency injection extensions for FluentValidation
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
3 versions withdrawn
withdrawn after publishing
127 years old
89 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
Removes deprecated DI extensions
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 →
Fix casing of Microsoft.Extensions.DependencyInjection.Abstractions dependency
Fix casing of Microsoft.Extensions.DependencyInjection.Abstractions dependency (#2344)
Removes deprecated DI extensions
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)
Removes deprecated DI extensions
Please read the upgrade guide if you are moving from 11.x to 12.x
Binaries can be downloaded from nuget:
Drops support for netstandard2.0, netstandard2.1, .net 5, .net 6 and .net 7. Minimum supported platform is now .net 8.
Add support for dependent rules for custom rules ( #2170 )
Removes deprecated DI extensions
Removes deprecated transform methods ( #2027 )
Remove the ability to disable the root-model null check ( #2069 )
Use Zomp.SyncMethodGenerator to clean up internal sync/async code paths and increase performance ( #2136 )
Add Serbian (Cyrillic) language; rename existing Serbian to Serbian (Latin) ( #2283 )
Binaries can be downloaded from nuget:
Assets 2 Loading
There was an error while loading. Please reload this page .
👍 1 ArGul-0 reacted with thumbs up emoji 😄 1 ArGul-0 reacted with laugh emoji 🎉 2 ArGul-0 and joaomelao-22 reacted with hooray emoji ❤️ 4 ArGul-0, RorroRojas3, TheDamiR, and joaomelao-22 reacted with heart emoji 🚀 2 ArGul-0 and joaomelao-22 reacted with rocket emoji 👀 1 ArGul-0 reacted with eyes emoji All reactions
👍 1 reaction
😄 1 reaction
🎉 2 reactions
❤️ 4 reactions
🚀 2 reactions
👀 1 reaction
4 people reacted
Nothing published for this version
Fixes to Japanese translations
Fixes to Japanese translations (#2341)
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
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:
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.
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:
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.
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:
ScalePrecisionValidator error message clarification (#2211)
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.
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:
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.
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.
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 non-generic PropertyValidator backwards compatibility layer.
Add method Only() to the test helper asserting that no other validation errors were raised.
Ensure property covariance is properly handled throughout the internal model ( #1713 )
Binaries can be downloaded from nuget:
FluentValidation - Main package
FluentValidation.AspNetCore - ASP.NET Core integration
Assets 2 Loading
There was an error while loading. Please reload this page .
👍 1 jeangatto reacted with thumbs up emoji 😄 1 jeangatto reacted with laugh emoji 🎉 3 JGMelon22, RandyPJ, and jeangatto reacted with hooray emoji ❤️ 6 Arman-Espiar, nimanikoo, egbakou, JGMelon22, RandyPJ, and jeangatto reacted with heart emoji 🚀 2 JGMelon22 and jeangatto reacted with rocket emoji All reactions
👍 1 reaction
😄 1 reaction
🎉 3 reactions
❤️ 6 reactions
🚀 2 reactions
6 people reacted
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.