FluentValidation 9.0.0-preview4

A validation library for .NET that uses a fluent interface to construct strongly-typed validation rules.

This is a prerelease version of FluentValidation.
There is a newer version of this package available.
See the version list below for details.
Install-Package FluentValidation -Version 9.0.0-preview4
dotnet add package FluentValidation --version 9.0.0-preview4
<PackageReference Include="FluentValidation" Version="9.0.0-preview4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FluentValidation --version 9.0.0-preview4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FluentValidation, 9.0.0-preview4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install FluentValidation as a Cake Addin
#addin nuget:?package=FluentValidation&version=9.0.0-preview4&prerelease

// Install FluentValidation as a Cake Tool
#tool nuget:?package=FluentValidation&version=9.0.0-preview4&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

FluentValidation 9 is a major release. Please read the upgrade notes at https://docs.fluentvalidation.net/en/latest/upgrading-to-9.html

Changes in 9.0.0:
* Removed support for netstandard1.1 and netstandard1.6
* Removed support for end-of-life .NET Core versions (2.2 and 3.0). LTS versions are supported (2.1 and 3.1)
* Default email validation mode now uses the same logic as ASP.NET Core. Previous regex behaviour is opt-in.
* TestHelper advanced mode now has more features (see https://docs.fluentvalidation.net/en/latest/testing.html#advanced-test-extensions)
* Equal/NotEqual now perform ordinal comparison when used with string properties
* Severity can now be set dynamically with a callback
* 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.
* ComparisonProperty placeholder is now formatted like PropertyName
* Translations of default error messages into other languages are now lazily-loaded
* Added Slovenian translations of default error messages.
* Added Icelandic translations of default error messages.
* Added WithMessageArgument to the test helpers.
* Add additional overload of SetValidator that takes a Func that receives the current property value.
* ASP.NET Core: FluentValidationModelValidatorProvider and FluentValidationModelValidator are now public.
* Work around a bug in ASP.NET Core's integration testing components that can cause ConfigureServices to run multiple times.
* SourceLink integration.
* {CollectionIndex} placeholder can now be accessed in child validators.
* Additional ValidationException constructor that allows using both the default message and a custom one together.
* ScalePrecisionValidator algorithm now matches SQL Server.
* Additional overload of the When methods that contain the validation context.

Full release notes can be found at https://github.com/FluentValidation/FluentValidation/blob/master/Changelog.txt

  • .NETFramework 4.6.1

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (865)

Showing the top 5 NuGet packages that depend on FluentValidation:

Package Downloads
FluentValidation.AspNetCore
AspNetCore integration for FluentValidation
FluentValidation.DependencyInjectionExtensions
Dependency injection extensions for FluentValidation
FluentValidation.WebAPI
ASP.NET WebApi integration for FluentValidation
FluentValidation.MVC5
ASP.NET MVC 5 integration for FluentValidation
Ocelot
Ocelot is an API Gateway. The project is aimed at people using .NET running a micro services / service orientated architecture that need a unified point of entry into their system. In particular I want easy integration with IdentityServer reference and bearer tokens. reference tokens. Ocelot is a bunch of middlewares in a specific order. Ocelot manipulates the HttpRequest object into a state specified by its configuration until it reaches a request builder middleware where it creates a HttpRequestMessage object which is used to make a request to a downstream service. The middleware that makes the request is the last thing in the Ocelot pipeline. It does not call the next middleware. The response from the downstream service is stored in a per request scoped repository and retrived as the requests goes back up the Ocelot pipeline. There is a piece of middleware that maps the HttpResponseMessage onto the HttpResponse object and that is returned to the client. That is basically it with a bunch of other features.

GitHub repositories (104)

Showing the top 5 popular GitHub repositories that depend on FluentValidation:

Repository Stars
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
NancyFx/Nancy
Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono
Sonarr/Sonarr
Smart PVR for newsgroup and bittorrent users.
ThreeMammals/Ocelot
.NET core API Gateway
abpframework/abp
Open Source Web Application Framework for ASP.NET Core

Version History

Version Downloads Last updated
10.1.0 101,195 4/28/2021
10.0.4 128,317 4/17/2021
9.5.4 102,670 4/5/2021
9.5.3 490,224 3/15/2021
9.5.2 235,738 3/8/2021
9.5.1 890,876 2/11/2021
9.5.0 475,582 1/31/2021
9.4.0 642,012 1/14/2021
9.3.0 2,751,896 11/10/2020
9.3.0-preview3 13,059 10/19/2020
9.3.0-preview2 52,367 9/15/2020
9.3.0-preview1 5,335 8/26/2020
9.2.2 2,005,870 9/20/2020
9.2.1 8,150 9/19/2020
9.2.0 2,419,455 8/26/2020
9.1.3 418,858 8/19/2020
9.1.2 299,208 8/12/2020
9.1.1 205,573 8/8/2020
9.1.0 7,095 8/8/2020
9.0.1 1,296,769 7/14/2020
9.0.0-preview5 47,297 5/23/2020
9.0.0-preview4 54,324 4/22/2020
9.0.0-preview3 97,703 2/29/2020
9.0.0-preview2 22,327 2/21/2020
9.0.0-preview1 46,771 2/8/2020
8.6.3 337,645 8/28/2020
8.6.2 9,575,062 2/29/2020
8.6.1 5,131,150 12/28/2019
8.6.0 2,035,169 12/4/2019
8.5.1 1,741,753 11/2/2019
8.5.0 2,634,687 9/24/2019
8.5.0-preview5 47,257 9/1/2019
8.5.0-preview4 72,552 7/23/2019
8.5.0-preview3 26,059 7/10/2019
8.5.0-preview2 39,276 6/13/2019
8.5.0-preview1 43,579 5/10/2019
8.4.0 7,221,470 5/10/2019
8.3.0 1,417,639 4/24/2019
8.2.3 372,551 4/12/2019
8.2.2 549,858 4/5/2019
8.2.1 97,525 4/4/2019
8.2.0 586,165 3/26/2019
8.1.3 3,301,713 1/25/2019
8.1.2 1,349,877 12/18/2018
8.1.1 394,785 12/11/2018
8.1.0 305,715 12/6/2018
8.1.0-preview2 25,814 11/14/2018
8.1.0-preview1 25,315 10/14/2018
8.0.101 427,898 11/24/2018
8.0.100 2,378,835 9/4/2018
8.0.0 552,568 8/16/2018
8.0.0-rc1 36,678 7/24/2018
8.0.0-preview4 22,126 7/16/2018
8.0.0-preview3 20,931 7/13/2018
8.0.0-preview2 20,697 7/13/2018
7.6.105 661,651 8/11/2018
7.6.104 1,639,249 7/6/2018
7.6.103 760,096 6/16/2018
7.6.102 170,405 6/14/2018
7.6.101 61,853 6/13/2018
7.6.100 131,847 6/7/2018
7.6.0 253,199 6/1/2018
7.6.0-preview1 34,268 4/12/2018
7.5.2 2,007,099 3/16/2018
7.5.1 165,428 3/11/2018
7.5.0 539,286 2/26/2018
7.4.0 803,924 1/26/2018
7.3.4 660,430 1/2/2018
7.3.3 143,228 12/22/2017
7.3.2 46,177 12/21/2017
7.3.1 204,985 12/13/2017
7.3.0 34,863 12/13/2017
7.3.0-beta3 25,354 12/8/2017
7.3.0-beta2 38,389 11/20/2017
7.3.0-beta1 22,327 11/11/2017
7.2.1 1,622,563 10/24/2017
7.2.0 508,588 10/5/2017
7.2.0-beta3 37,999 9/5/2017
7.2.0-beta2 24,020 8/22/2017
7.2.0-beta1 20,772 8/19/2017
7.1.1 1,104,257 7/25/2017
7.1.0 333,605 6/28/2017
7.1.0-beta1 20,614 6/24/2017
7.0.3 413,986 6/7/2017
7.0.2 177,240 5/26/2017
7.0.1 57,261 5/23/2017
7.0.0 262,780 5/19/2017
7.0.0-beta3 24,602 5/1/2017
7.0.0-beta2 24,264 4/17/2017
7.0.0-beta1 21,785 4/7/2017
6.4.1 793,643 3/15/2017
6.4.1-beta1 21,589 3/13/2017
6.4.0 560,553 3/3/2017
6.4.0-rc4 142,938 2/13/2017
6.4.0-rc3 30,297 2/3/2017
6.4.0-rc2 36,886 1/30/2017
6.4.0-rc1 20,677 1/30/2017
6.4.0-beta9 79,184 11/21/2016
6.4.0-beta8 47,168 10/31/2016
6.4.0-beta7 21,229 10/28/2016
6.4.0-beta6 21,652 10/25/2016
6.4.0-beta5 21,351 10/24/2016
6.4.0-beta4 21,379 10/21/2016
6.4.0-beta3 63,989 7/4/2016
6.4.0-beta2 22,229 7/1/2016
6.4.0-beta10 20,535 1/30/2017
6.4.0-beta1 24,405 6/28/2016
6.3.4-alpha 237,504 6/1/2016
6.3.3-alpha 20,940 5/27/2016
6.2.1 2,508,296 2/26/2016
6.2.1-beta1 24,795 2/24/2016
6.2.0 89,171 2/22/2016
6.2.0-beta1 21,017 2/12/2016
6.1.0 258,593 1/18/2016
6.0.2 89,772 1/5/2016
6.0.1 33,444 1/5/2016
6.0.0 69,290 12/22/2015
5.6.2 862,005 5/29/2015
5.6.1 27,350 5/29/2015
5.5.0 677,635 10/31/2014
5.4.0 396,115 7/3/2014
5.3.0 77,465 5/27/2014
5.2.0 51,862 5/21/2014
5.1.0 418,022 3/11/2014
5.0.0.1 226,614 10/24/2013
4.0.0.1 176,959 7/18/2013
4.0.0 88,661 4/29/2013
3.4.6 239,906 8/30/2012
3.4.0 52,492 8/17/2012
3.3.1 42,831 3/30/2012
3.2.0 54,861 11/14/2011
3.1.0 47,676 7/30/2011
3.0.0.1 22,909 7/5/2011
3.0.0 28,500 6/25/2011
2.0.0 42,770 1/9/2011
1.3.0 53,026 1/7/2011
Show less