Repository navigation
11.4.0
Release notes
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.
Changes in 11.4.0
- Deprecate
ScalePrecisionvalidator and introducePrecisionScalevalidator as its replacement (#2030)
Changes in 11.3.0
- Add a net7 build
- Annotate string parameters with
StringSyntaxAttribute.Regexin net7 builds (#1957) - Fixes to SourceLink integration (#2019)
- Add Uzbek Latin and Cyrillic languages (#2013)
- Updates to Danish language (#2012)
Changes in 11.2.2
MemberNameValidatorSelectorshould make use ofPropertyNameResolverwhen parsing expressions (#2003)
Changes in 11.2.1
- Fix test helper
Only()not taking into account parent-level unmatched failures (#1986)
Changes in 11.2.0
- Resolve issue with unexpected results when with nested
Includecalls with theMemberNameValidatorSelector(#1989) - Add a new Selector Factory for the Composite Selector (#1988)
Changes in 11.1.1
- Fix issue with incorrect rulesets being executed in a child validator when combined with ChildRules (#1981)
- Bulgarian translations of default messages (#1973)
Changes in 11.1.0
- Added a
ToDictionarymethod toValidationResult(particularly useful when working with Minimal APIs)- - MVC auto validation: Deprecated Implicit validation of child properties (#1960)
- MVC auto validation: Deprecated Implicit validation of root collection elements (#1960)
- Deprecated
InjectValidator(#1960) - Deprecated
IValidatorFactoryandServiceProviderValidatorFactory(#1961) - Introduce
services.AddFluentValidationAutoValidation()andservices.AddFluentValidationClientsideAdapters()as replacements forservices.AddFluentValidation()(#1965) - Remove duplication between sync and async validation in the internal model.
Changes in 11.0.3
- Fix
AsyncValidatorInvokedSynchronouslyExceptionbeing incorrectly thrown when the top-levelWhenmethod withRuleForEach, even when invoked asynchronously (#1955)
Changes in 11.0.2
- Child validator contexts now contain a reference to their parent context (#1945)
- Support deserialization of
ValidationResultusing System.Text.Json (#1928)
Changes in 11.0.1
- Fix regression in the Test Helper affecting the
With*andWithout*assertion methods (#1937)
Changes in 11.0
- Throw exceptions when async validator is invoked synchronously (#1705)
- Removal deprecated OnFailure/OnAnyFailure callbacks.
- Remove deprecated
RunDefaultMvcValidationAfterFluentValidationExecutesoption from ASP.NET integration. - Remove deprecated
Optionsproperty from RuleComponent. - Remove deprecated TestHelper methods.
- Remove non-generic
PropertyValidatorbackwards 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)
Downloads
Binaries can be downloaded from nuget:
- FluentValidation - Main package
- FluentValidation.AspNetCore - ASP.NET Core integration