FluentValidation.AspNetCore 9.0.1

AspNetCore integration for FluentValidation

Install-Package FluentValidation.AspNetCore -Version 9.0.1
dotnet add package FluentValidation.AspNetCore --version 9.0.1
<PackageReference Include="FluentValidation.AspNetCore" Version="9.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FluentValidation.AspNetCore --version 9.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Changes in 9.0.0:
* Compatibility with FluentValidation 9.0
* 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.
* Automatically scanned types can be excluded when calling RegisterValidatorsFromAssemblyContaining in ASP.NET Core projects.
* New AutomaticValidationEnabled property for use in ASP.NET Core projects (defaults to true).
* SourceLink integration
* Dropped support for end-of-life .NET Core versions (2.2 and 3.0). LTS versions are supported (2.1 and 3.1)

Changes in 8.6.0:
* Add support for ASP.NET Core 3.1
* AddToModelState no longer includes a dot if PropertyName is null

Changes in 8.5.1:
* Ensure lazily loaded calls to WithMessage can be used for client-side validation, provided they don't attempt to access model properties from inside the delegate (eg when using IStringLocalizer).

Changes in 8.5.0:
* Compatibility with ASP.NET Core 3.

Changes in 8.4.0:
* Added simplified version of several messages across all translations to aid with ASP.NET Clientside validation.

Changes in 8.3.0:
* Fix issue in ASP.NET Core integration with GetServiceProvider not working correctly when invoked against a CustomContext/MessageBuilderContext.

Changes in 8.2.1:
* Resolved issue using InjectValidator with RuleForEach.
* Add support for a default IValidatorInterceptor to be registered with the Service Provider.

Changes in 8.2.0:
* Add extensions for injecting child validators using the ASP.NET Core Service Provider.

Changes in 8.1.3:
* Resolved issue where clientside validation was incorrectly generating metadata for rules with shared conditions.

Changes in 7.6.103:
* Support for validating controller and Razor properties annotated [BindProperty].

Changes in 7.6:
* Updates to support ASP.NET Core 2.1

Changes in 7.5:
* Better handling of clientside messages when using custom overriden language resources
* Added flag in the ValidationContext's RootDataContext when a validator is invoked by the automatic MVC/WebApi integration

Changes in 7.4:
* Added SetRulesetForClientsideMessages method as an alternative to using the RulesetForClientSideMessagesAttribute
* Updated MVC dependency to version 2.0.2

Changes in 7.3:
* Added support for validating collections when using the automatic MVC integration
* Added support for implicat validation of child properties when using the automatic MVC integration
* Added Skip property to the CustomizeValidatorAttribute to opt-out of validating certain properties

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

NuGet packages (140)

Showing the top 5 NuGet packages that depend on FluentValidation.AspNetCore:

Package Downloads
Reo.Core.Validation
Package Description
Sillycore.Web
A helper library to kickstart API developments on top of Sillycore.
Indice.AspNetCore
Indice.AspNetCore Class Library
Sintek.Api
Заготовка для ASP.NET Core API
Lykke.Sdk
Package Description

GitHub repositories (28)

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

Repository Stars
dotnet-architecture/eShopOnContainers
Cross-platform .NET sample microservices and container based application that runs on Linux Windows and macOS. Powered by .NET Core 3.0, Docker Containers and Azure Kubernetes Services. Supports Visual Studio, VS for Mac and CLI based environments with Docker CLI, dotnet CLI, VS Code or any other code editor.
nopSolutions/nopCommerce
The most popular open-source eCommerce shopping cart solution based on ASP.NET Core
dodyg/practical-aspnetcore
Practical samples of aspnet core 2.1, 2.2, 3.1 and 5.0 Preview 7 projects you can use. Readme contains explanations on all projects.
jasontaylordev/NorthwindTraders
Northwind Traders is a sample application built using ASP.NET Core and Entity Framework Core.
grandnode/grandnode
Free and Open Source Ecommerce Shopping Cart solution based on ASP.NET CORE and MongoDB

Version History

Version Downloads Last updated
9.0.1 47,413 7/14/2020
9.0.0-preview5 7,773 5/23/2020
9.0.0-preview4 8,803 4/22/2020
9.0.0-preview3 17,014 2/29/2020
9.0.0-preview2 8,308 2/21/2020
9.0.0-preview1 7,620 2/8/2020
8.6.2 1,658,602 2/29/2020
8.6.1 1,319,427 12/28/2019
8.6.0 810,968 12/4/2019
8.5.1 494,904 11/2/2019
8.5.0 725,941 9/24/2019
8.5.0-preview5 18,194 9/1/2019
8.5.0-preview4 28,662 7/23/2019
8.5.0-preview3 3,870 7/10/2019
8.5.0-preview2 7,976 6/13/2019
8.5.0-preview1 8,107 5/10/2019
8.4.0 2,119,159 5/10/2019
8.3.0 184,145 4/24/2019
8.2.2 281,034 4/5/2019
8.2.1 22,971 4/4/2019
8.2.0 112,171 3/26/2019
8.1.3 1,048,125 1/25/2019
8.1.2 503,395 12/18/2018
8.1.1 169,311 12/11/2018
8.1.0 61,257 12/6/2018
8.0.101 147,547 11/24/2018
8.0.100 825,306 9/4/2018
8.0.0 125,943 8/16/2018
8.0.0-rc1 8,777 7/24/2018
8.0.0-preview4 1,301 7/16/2018
8.0.0-preview3 645 7/13/2018
8.0.0-preview2 412 7/13/2018
8.0.0-preview1 555 7/10/2018
7.6.105 110,356 8/11/2018
7.6.104 474,717 7/6/2018
7.6.103 183,426 6/16/2018
7.6.102 37,764 6/14/2018
7.6.101 12,300 6/13/2018
7.6.0 108,263 6/1/2018
7.6.0-preview1 2,756 4/12/2018
7.5.2 538,164 3/16/2018
7.5.0 237,336 2/26/2018
7.4.0 137,035 1/26/2018
7.3.4 131,865 1/2/2018
7.3.3 60,214 12/22/2017
7.3.2 5,711 12/21/2017
7.3.1 31,408 12/13/2017
7.3.0-beta3 4,935 12/8/2017
7.3.0-beta2 13,336 11/20/2017
7.3.0-beta1 1,353 11/11/2017
7.2.1 284,765 10/24/2017
7.2.0 57,133 10/5/2017
7.2.0-beta3 12,878 9/5/2017
7.2.0-beta2 2,848 8/22/2017
7.2.0-beta1 458 8/19/2017
7.1.1 170,051 7/25/2017
7.1.0 44,659 6/28/2017
7.1.0-beta1 445 6/24/2017
7.0.3 22,831 6/7/2017
7.0.2 13,598 5/26/2017
7.0.0 11,778 5/19/2017
7.0.0-beta3 965 5/1/2017
7.0.0-beta2 1,441 4/17/2017
7.0.0-beta1 1,283 4/7/2017
6.4.0 165,389 3/3/2017
6.4.0-rc4 4,262 2/13/2017
6.4.0-rc3 3,440 2/3/2017
6.4.0-rc2 15,122 1/30/2017
6.4.0-rc1 446 1/30/2017
6.4.0-beta9 29,157 11/21/2016
6.4.0-beta8 9,721 10/31/2016
6.4.0-beta7 621 10/28/2016
6.4.0-beta6 1,133 10/25/2016
6.4.0-beta5 868 10/24/2016
6.4.0-beta4 769 10/21/2016
6.4.0-beta3 12,535 7/4/2016
6.4.0-beta2 420 7/1/2016
6.4.0-beta10 362 1/30/2017
6.4.0-beta1 447 6/28/2016