FluentValidation.AspNetCore 9.3.0

AspNetCore integration for FluentValidation

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

Release Notes

Changes in 9.3.0:
* Support for .net 5
* CustomizeValidatorAttribute now works in Razor pages (netcore 3.1 and net 5.0 only)
* RuleSetForClientSideMessagesAttribute now works in Razor pages (netcore 3.1 and net 5.0 only)

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 (165)

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
Be.Vlaanderen.Basisregisters.Api
Common API infrastructure and helpers.

GitHub repositories (38)

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 ASP.NET Core 2.1, 2.2, 3.1, and 5.0 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 5

Version History

Version Downloads Last updated
9.3.0 63,975 11/10/2020
9.3.0-preview3 2,728 10/19/2020
9.3.0-preview2 8,558 9/15/2020
9.3.0-preview1 1,858 8/26/2020
9.2.0 801,280 8/26/2020
9.1.3 90,659 8/19/2020
9.1.2 84,314 8/12/2020
9.1.1 58,907 8/8/2020
9.1.0 1,337 8/8/2020
9.0.1 327,278 7/14/2020
9.0.0-preview5 16,627 5/23/2020
9.0.0-preview4 15,757 4/22/2020
9.0.0-preview3 25,067 2/29/2020
9.0.0-preview2 11,773 2/21/2020
9.0.0-preview1 10,529 2/8/2020
8.6.3 22,383 8/28/2020
8.6.2 3,100,132 2/29/2020
8.6.1 1,902,488 12/28/2019
8.6.0 1,009,076 12/4/2019
8.5.1 600,549 11/2/2019
8.5.0 880,224 9/24/2019
8.5.0-preview5 19,007 9/1/2019
8.5.0-preview4 30,951 7/23/2019
8.5.0-preview3 4,036 7/10/2019
8.5.0-preview2 8,242 6/13/2019
8.5.0-preview1 8,661 5/10/2019
8.4.0 2,404,270 5/10/2019
8.3.0 200,002 4/24/2019
8.2.2 303,127 4/5/2019
8.2.1 24,419 4/4/2019
8.2.0 126,819 3/26/2019
8.1.3 1,124,027 1/25/2019
8.1.2 540,833 12/18/2018
8.1.1 199,023 12/11/2018
8.1.0 64,355 12/6/2018
8.0.101 154,224 11/24/2018
8.0.100 882,358 9/4/2018
8.0.0 134,515 8/16/2018
8.0.0-rc1 9,142 7/24/2018
8.0.0-preview4 1,405 7/16/2018
8.0.0-preview3 739 7/13/2018
8.0.0-preview2 504 7/13/2018
8.0.0-preview1 632 7/10/2018
7.6.105 129,263 8/11/2018
7.6.104 506,480 7/6/2018
7.6.103 195,126 6/16/2018
7.6.102 38,404 6/14/2018
7.6.101 12,945 6/13/2018
7.6.0 114,268 6/1/2018
7.6.0-preview1 2,874 4/12/2018
7.5.2 562,724 3/16/2018
7.5.0 251,781 2/26/2018
7.4.0 150,375 1/26/2018
7.3.4 139,799 1/2/2018
7.3.3 64,666 12/22/2017
7.3.2 7,001 12/21/2017
7.3.1 32,358 12/13/2017
7.3.0-beta3 5,015 12/8/2017
7.3.0-beta2 13,533 11/20/2017
7.3.0-beta1 1,438 11/11/2017
7.2.1 307,855 10/24/2017
7.2.0 58,526 10/5/2017
7.2.0-beta3 12,968 9/5/2017
7.2.0-beta2 2,946 8/22/2017
7.2.0-beta1 537 8/19/2017
7.1.1 176,614 7/25/2017
7.1.0 46,061 6/28/2017
7.1.0-beta1 522 6/24/2017
7.0.3 23,546 6/7/2017
7.0.2 13,760 5/26/2017
7.0.0 13,076 5/19/2017
7.0.0-beta3 1,039 5/1/2017
7.0.0-beta2 1,523 4/17/2017
7.0.0-beta1 1,359 4/7/2017
6.4.0 168,302 3/3/2017
6.4.0-rc4 4,352 2/13/2017
6.4.0-rc3 3,938 2/3/2017
6.4.0-rc2 15,315 1/30/2017
6.4.0-rc1 537 1/30/2017
6.4.0-beta9 29,683 11/21/2016
6.4.0-beta8 9,809 10/31/2016
6.4.0-beta7 695 10/28/2016
6.4.0-beta6 1,227 10/25/2016
6.4.0-beta5 953 10/24/2016
6.4.0-beta4 846 10/21/2016
6.4.0-beta3 12,715 7/4/2016
6.4.0-beta2 497 7/1/2016
6.4.0-beta10 448 1/30/2017
6.4.0-beta1 546 6/28/2016