FluentValidation.WebAPI 8.6.1

ASP.NET WebApi integration for FluentValidation

Additional Details

FluentValidation no longer supports WebApi 2.

Install-Package FluentValidation.WebAPI -Version 8.6.1
dotnet add package FluentValidation.WebAPI --version 8.6.1
<PackageReference Include="FluentValidation.WebAPI" Version="8.6.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FluentValidation.WebAPI --version 8.6.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FluentValidation.WebAPI, 8.6.1"
#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.WebAPI as a Cake Addin
#addin nuget:?package=FluentValidation.WebAPI&version=8.6.1

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

Release Notes

Changes in 8.6.0:
* AddToModelState no longer includes a dot if PropertyName is null

Changes in 8.2.3:
* Fix issue in WebApi integration where DataAnnotations validators could generate duplicate messages when in the same project as FluentValidation.

Changes in 8.1.0:
* Added Skip property on CustomizeValidatorAttribute for consistency with ASP.NET Core.

Changes in 7.5.1:
* Added support for CustomizeValidatorAttribute for consistency with MVC5 and AspNetCore.

Changes in 7.4:
* Support for WebApi 5.2.4 and improved integration with WebApi's validation pipeline.

NuGet packages (5)

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

Package Downloads
Improving.AspNet
Improving web api, mvc, and mediatr integration
JE.ApiValidation.WebApi.FluentValidation
API Validation support with FluentValidation for frameworks we use. Standard error response DTO.
MicroElements.Swashbuckle.FluentValidation.WebApi
Swagger ISchemaFilter that uses FluentValidation validators instead System.ComponentModel based attributes.
Startup.Web
Helper library to startup new web based projects using DDD Architecture
Smart.SWeb
Smart.Web 使用方法: (在Global.asax.cs文件Application_Start方法添加如下代码) //全局封装webapi的返回结果如:{"Code":500,"Data":null,"Message":"尝试除以零。","Success":false} GlobalConfiguration.Configure(Smart.Web.SmartWeb.InitAPIResultAttribute); //全局异常处理 GlobalConfiguration.Configure(Smart.Web.SmartWeb.InitApiExceptionHandlingAttribute); (在WebApiConfig.cs文件Register方法添加如下代码) //控制器版本管理 Dictionary<string, object> dic = new Dictionary<string, object>(); dic.Add("config", config); var versionControllerSelector = Smart.Kernel.Resolve<Smart.Web.ISVersionControllerSelector>(dic); config.Services.Replace(typeof(IHttpControllerSelector), versionControllerSelector);

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on FluentValidation.WebAPI:

Repository Stars
exceptionnotfound/DotNetCqrsDemo

Version History

Version Downloads Last updated
8.6.1 175,467 2/24/2020
8.6.0 64,435 12/4/2019
8.5.1 31,885 11/2/2019
8.5.0 43,539 9/24/2019
8.4.0 174,453 5/10/2019
8.3.0 8,283 4/24/2019
8.2.3 32,722 4/12/2019
8.2.0 24,964 3/26/2019
8.1.3 110,270 1/25/2019
8.1.2 31,134 12/18/2018
8.1.1 5,177 12/11/2018
8.1.0 3,710 12/6/2018
8.0.100 165,957 9/4/2018
8.0.0 21,973 8/16/2018
8.0.0-rc1 1,256 7/24/2018
8.0.0-preview4 746 7/16/2018
8.0.0-preview3 724 7/13/2018
8.0.0-preview2 637 7/13/2018
8.0.0-preview1 744 7/10/2018
7.6.105 17,312 8/11/2018
7.6.104 79,415 7/6/2018
7.6.103 30,689 6/16/2018
7.6.102 8,022 6/14/2018
7.6.101 1,249 6/13/2018
7.6.0 8,719 6/1/2018
7.5.2 119,668 3/16/2018
7.5.1 24,707 3/11/2018
7.5.0 33,932 2/26/2018
7.4.0 22,418 2/21/2018
7.2.1 432,278 10/24/2017
7.2.0 75,929 10/5/2017
7.1.1 140,241 7/25/2017
7.1.0 86,852 6/28/2017
7.1.0-beta1 641 6/24/2017
7.0.3 38,333 6/7/2017
7.0.1 31,526 5/23/2017
7.0.0 22,949 5/19/2017
7.0.0-beta3 744 5/1/2017
7.0.0-beta2 2,121 4/17/2017
7.0.0-beta1 699 4/7/2017
6.4.0 148,421 3/3/2017
6.4.0-beta9 1,304 11/29/2016
6.2.1 440,338 2/26/2016
6.2.1-beta1 765 2/24/2016
6.2.0 31,048 2/22/2016
6.2.0-beta1 769 2/12/2016
6.1.0 58,702 1/18/2016
6.0.2 23,232 1/5/2016
6.0.1 813 1/5/2016
6.0.0 3,203 12/22/2015
5.6.2 110,034 5/29/2015
5.6.1 851 5/29/2015
5.6.0 5,479 5/22/2015
5.5.0 67,172 10/31/2014
5.4.0 13,906 7/3/2014
5.2.0 3,628 5/21/2014
5.1.0 13,847 3/11/2014