Release notes
Please read the upgrade guide if you are moving from 9.x to 10.x
Changes in 10.0.4
- Resolved an issue where async conditions were run synchronously when applied to synchronous property validators
Changes in 10.0.3
- Fix ArgumentOutOfRangeException when condition returns false for RuleForEach containing multiple components (#1698)
Changes in 10.0.2
ErrorCode
is now exposed onIRuleComponent
Changes in 10.0.1
- Add
GetPropertyValue
toIValidationRule
to support #1688 - Context object is now strongly typed inside
IValidationRule<T>.ApplyCondition
/ApplyAsyncCondition
for users of the internal API
Changes in 10.0.0
- Various performance improvements throughout the library
- Collection rules now only iterate the collection once
- Property validator classes are now generic
- Deprecated non-generic
PropertyValidator
. - Changed type of
ValidationResult.Errors
fromIList<ValidationFailure>
toList<ValidationFailure>
- The internal API now uses generics.
- 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, wherePropertyValidators
were previously returned- Default service lifetime in ASP.NET projects is now
Scoped
rather thanTransient
. - Combined
IActionContextValidatorInterceptor
andIValidatorInterceptor
. - Changes to the ASP.NET Client Validator Adaptor interfaces. These now receive the rule component.
- Removed deprecated
IStringSource
and its inheritors. - Removed deprecated
FormattedMessageArguments
fromValidationFailure
. - Removed other deprecated code.
Downloads
Binaries can be downloaded from nuget:
- FluentValidation - Main package
- FluentValidation.AspNetCore - ASP.NET Core integration