FluentValidation.AspNetCore 9.2.0

AspNetCore integration for FluentValidation

There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package FluentValidation.AspNetCore -Version 9.2.0
dotnet add package FluentValidation.AspNetCore --version 9.2.0
<PackageReference Include="FluentValidation.AspNetCore" Version="9.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FluentValidation.AspNetCore --version 9.2.0
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 (155)

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

Package Downloads
Reo.Core.Validation
Package Description
YPF.MSFramework
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

GitHub repositories (37)

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 RC 2 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.
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for Angular 10 and .NET Core 3.1

Version History

Version Downloads Last updated
9.3.0-preview3 630 10/19/2020
9.3.0-preview2 5,244 9/15/2020
9.3.0-preview1 1,523 8/26/2020
9.2.0 454,078 8/26/2020
9.1.3 75,750 8/19/2020
9.1.2 66,518 8/12/2020
9.1.1 48,143 8/8/2020
9.1.0 1,014 8/8/2020
9.0.1 282,169 7/14/2020
9.0.0-preview5 14,994 5/23/2020
9.0.0-preview4 14,103 4/22/2020
9.0.0-preview3 23,396 2/29/2020
9.0.0-preview2 11,154 2/21/2020
9.0.0-preview1 9,578 2/8/2020
8.6.3 11,089 8/28/2020
8.6.2 2,767,280 2/29/2020
8.6.1 1,763,698 12/28/2019
8.6.0 964,599 12/4/2019
8.5.1 577,105 11/2/2019
8.5.0 838,546 9/24/2019
8.5.0-preview5 18,810 9/1/2019
8.5.0-preview4 30,421 7/23/2019
8.5.0-preview3 3,966 7/10/2019
8.5.0-preview2 8,152 6/13/2019
8.5.0-preview1 8,531 5/10/2019
8.4.0 2,338,515 5/10/2019
8.3.0 193,062 4/24/2019
8.2.2 298,025 4/5/2019
8.2.1 23,912 4/4/2019
8.2.0 122,586 3/26/2019
8.1.3 1,105,151 1/25/2019
8.1.2 532,434 12/18/2018
8.1.1 194,767 12/11/2018
8.1.0 63,847 12/6/2018
8.0.101 152,168 11/24/2018
8.0.100 869,436 9/4/2018
8.0.0 132,565 8/16/2018
8.0.0-rc1 8,997 7/24/2018
8.0.0-preview4 1,352 7/16/2018
8.0.0-preview3 692 7/13/2018
8.0.0-preview2 457 7/13/2018
8.0.0-preview1 597 7/10/2018
7.6.105 124,904 8/11/2018
7.6.104 497,771 7/6/2018
7.6.103 192,704 6/16/2018
7.6.102 38,195 6/14/2018
7.6.101 12,756 6/13/2018
7.6.0 112,514 6/1/2018
7.6.0-preview1 2,827 4/12/2018
7.5.2 557,166 3/16/2018
7.5.0 247,928 2/26/2018
7.4.0 146,731 1/26/2018
7.3.4 137,040 1/2/2018
7.3.3 63,516 12/22/2017
7.3.2 6,620 12/21/2017
7.3.1 32,001 12/13/2017
7.3.0-beta3 4,972 12/8/2017
7.3.0-beta2 13,463 11/20/2017
7.3.0-beta1 1,393 11/11/2017
7.2.1 299,859 10/24/2017
7.2.0 58,117 10/5/2017
7.2.0-beta3 12,919 9/5/2017
7.2.0-beta2 2,890 8/22/2017
7.2.0-beta1 499 8/19/2017
7.1.1 174,547 7/25/2017
7.1.0 45,668 6/28/2017
7.1.0-beta1 484 6/24/2017
7.0.3 23,343 6/7/2017
7.0.2 13,686 5/26/2017
7.0.0 12,501 5/19/2017
7.0.0-beta3 1,003 5/1/2017
7.0.0-beta2 1,480 4/17/2017
7.0.0-beta1 1,321 4/7/2017
6.4.0 167,596 3/3/2017
6.4.0-rc4 4,304 2/13/2017
6.4.0-rc3 3,477 2/3/2017
6.4.0-rc2 15,263 1/30/2017
6.4.0-rc1 484 1/30/2017
6.4.0-beta9 29,502 11/21/2016
6.4.0-beta8 9,765 10/31/2016
6.4.0-beta7 658 10/28/2016
6.4.0-beta6 1,169 10/25/2016
6.4.0-beta5 905 10/24/2016
6.4.0-beta4 808 10/21/2016
6.4.0-beta3 12,643 7/4/2016
6.4.0-beta2 458 7/1/2016
6.4.0-beta10 399 1/30/2017
6.4.0-beta1 490 6/28/2016