Release notes
Please read the upgrade guide for full details: https://docs.fluentvalidation.net/en/latest/upgrading-to-9.html
- Removed support for netstandard1.1, netstandard1.6, net45 (Supported platforms are now netstandard2, net461, netcoreapp2.1, netcoreapp3.0, netcoreapp3.1)
- Removed WithLocalizedMessage (WithMessage that takes a callback is the replacement)
- Removed ResourceName from ValidationFailure
- Removed ResourceName and ResourceType from IStringSource.
- Removed SetCollectionValidator which was deprecated in 8.0
- Additional overload of OnAnyFailure that can receive a collection of validation failures
- Remove DisplayAttribute integration and reference to DataAnnotations.
- Default email validation mode now uses the same logic as ASP.NET Core. Previous regex behaviour is opt-in.
- ComparisonProperty placeholder is now formatted like PropertyName.
- TestHelper syntax improvements
Equal
/NotEqual
now perform ordinal comparisons on string properties by default- Severity can be set with a callback
- PropertyValidator.ShouldValidateAsync reanamed to ShouldValidateAsynchronously to remove confusion where the naming suggested this was an async method
- Removed various methods from MessageFormatter that were deprecated in 8.x
- PropertyValidatorContext.Instance renamed to InstanceToValidate for consistency with ValidationContext.
- Removed DelegatingValidator which was deprecated in 8.x.
Downloads
Binaries can be downloaded from nuget:
- FluentValidation - Main package
- FluentValidation.AspNetCore - ASP.NET Core integration