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

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 756 10/19/2020
9.3.0-preview2 5,510 9/15/2020
9.3.0-preview1 1,544 8/26/2020
9.2.0 474,293 8/26/2020
9.1.3 76,670 8/19/2020
9.1.2 67,252 8/12/2020
9.1.1 48,888 8/8/2020
9.1.0 1,039 8/8/2020
9.0.1 284,963 7/14/2020
9.0.0-preview5 15,102 5/23/2020
9.0.0-preview4 14,189 4/22/2020
9.0.0-preview3 23,531 2/29/2020
9.0.0-preview2 11,183 2/21/2020
9.0.0-preview1 9,636 2/8/2020
8.6.3 11,578 8/28/2020
8.6.2 2,786,360 2/29/2020
8.6.1 1,772,228 12/28/2019
8.6.0 967,015 12/4/2019
8.5.1 578,716 11/2/2019
8.5.0 840,855 9/24/2019
8.5.0-preview5 18,823 9/1/2019
8.5.0-preview4 30,447 7/23/2019
8.5.0-preview3 3,968 7/10/2019
8.5.0-preview2 8,154 6/13/2019
8.5.0-preview1 8,534 5/10/2019
8.4.0 2,342,336 5/10/2019
8.3.0 193,231 4/24/2019
8.2.2 298,291 4/5/2019
8.2.1 23,963 4/4/2019
8.2.0 122,789 3/26/2019
8.1.3 1,106,389 1/25/2019
8.1.2 532,755 12/18/2018
8.1.1 195,013 12/11/2018
8.1.0 63,877 12/6/2018
8.0.101 152,244 11/24/2018
8.0.100 870,234 9/4/2018
8.0.0 132,671 8/16/2018
8.0.0-rc1 9,009 7/24/2018
8.0.0-preview4 1,357 7/16/2018
8.0.0-preview3 697 7/13/2018
8.0.0-preview2 462 7/13/2018
8.0.0-preview1 600 7/10/2018
7.6.105 125,014 8/11/2018
7.6.104 498,139 7/6/2018
7.6.103 192,866 6/16/2018
7.6.102 38,206 6/14/2018
7.6.101 12,768 6/13/2018
7.6.0 112,594 6/1/2018
7.6.0-preview1 2,832 4/12/2018
7.5.2 557,572 3/16/2018
7.5.0 248,118 2/26/2018
7.4.0 146,986 1/26/2018
7.3.4 137,210 1/2/2018
7.3.3 63,573 12/22/2017
7.3.2 6,641 12/21/2017
7.3.1 32,018 12/13/2017
7.3.0-beta3 4,977 12/8/2017
7.3.0-beta2 13,471 11/20/2017
7.3.0-beta1 1,398 11/11/2017
7.2.1 300,083 10/24/2017
7.2.0 58,125 10/5/2017
7.2.0-beta3 12,924 9/5/2017
7.2.0-beta2 2,893 8/22/2017
7.2.0-beta1 503 8/19/2017
7.1.1 174,610 7/25/2017
7.1.0 45,702 6/28/2017
7.1.0-beta1 489 6/24/2017
7.0.3 23,350 6/7/2017
7.0.2 13,689 5/26/2017
7.0.0 12,537 5/19/2017
7.0.0-beta3 1,008 5/1/2017
7.0.0-beta2 1,485 4/17/2017
7.0.0-beta1 1,325 4/7/2017
6.4.0 167,666 3/3/2017
6.4.0-rc4 4,309 2/13/2017
6.4.0-rc3 3,484 2/3/2017
6.4.0-rc2 15,270 1/30/2017
6.4.0-rc1 489 1/30/2017
6.4.0-beta9 29,510 11/21/2016
6.4.0-beta8 9,768 10/31/2016
6.4.0-beta7 661 10/28/2016
6.4.0-beta6 1,174 10/25/2016
6.4.0-beta5 909 10/24/2016
6.4.0-beta4 811 10/21/2016
6.4.0-beta3 12,648 7/4/2016
6.4.0-beta2 463 7/1/2016
6.4.0-beta10 404 1/30/2017
6.4.0-beta1 497 6/28/2016