MicroElements.Swashbuckle.FluentValidation 4.3.0

Swagger ISchemaFilter that uses FluentValidation validators instead System.ComponentModel based attributes.

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

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

Release Notes

$# Changes in 4.3.0:
* Fixed #79: Adding a simple Length validation to a string field should not make the field non-nullable
* Fixed #76: SetValidator is applying FluentValidation rules to parent object property with same name

# Changes in 4.2.0:
* Swashbuckle.AspNetCore version supports up to 7 (PR#75 by fabich)

# Changes in 4.1.0:
* RuleForEach supported. Issue #66
* SetValidator supported. Issue #68
* Multiple match rules supported with allOf. Issue #69
* Fixed #67: Absence of MinimumLength should not override nullable. (PR#67 by bcronje)
* Fixed #70: Nullability for numerics if MinLength is greater then zero
* Nullable annotations added

# Changes in 4.0.0:
* FluentValidation updated to [9.0.0]
* Swashbuckle.AspNetCore updated to [5.5.1]
* Changed getting included validator (FluentValidation internal API changed)
* New EmailValidator rule compatible with FluentValidation AspNetCoreCompatibleEmailValidator

# Changes in 3.2.0:
* FluentValidation fix version to [8.3.0, 9)
* Swashbuckle.AspNetCore fix version to [5.2.0, 6)
* Base type for numeric switched to decimal to match type change in OpenApi. Fixes floating numbers with nines after period.
* More smart MinLength, MaxLength, Minimum, Maximum that allows to combine rules without override values.
* More strict limits will be used for min and max values that was set more then once in other rules


Full release notes can be found at: https://github.com/micro-elements/MicroElements.Swashbuckle.FluentValidation/blob/master/CHANGELOG.md

NuGet packages (21)

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

Package Downloads
Reo.Core.Validation
Package Description
Hyperledger.Aries.AspNetCore
ASP.NET Core support for Agent Framework
H21.AspNetCore.Validation
Package Description
Stone.Util
各个应用程序通用类库
iNube.Utility.Framework
Added CorelationId,CreatedDate,Error logs

GitHub repositories (1)

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

Repository Stars
AlphaYu/Adnc
微服务框架,同时也适用于单体架构系统的开发。支持经典三层与DDD架构开发模式、集成了一系列主流稳定的微服务配套技术栈。一个前后端分离的框架,前端基于Vue、后端基于.Net Core 3.1构建。

Version History

Version Downloads Last updated
4.3.0 47,128 3/25/2021
4.3.0-rc.1 124 3/21/2021
4.2.0 49,132 2/18/2021
4.1.0 61,217 1/21/2021
4.1.0-rc.1 1,192 1/6/2021
4.0.0 400,875 8/21/2020
4.0.0-rc.2 12,458 7/18/2020
4.0.0-rc.1 65,224 6/15/2020
3.2.0 186,223 6/14/2020
3.1.1 146,428 4/28/2020
3.1.0 119,361 3/25/2020
3.0.0 76,938 3/7/2020
3.0.0-rc.6 40,239 2/5/2020
3.0.0-rc.5 118,919 1/24/2020
3.0.0-rc.4 96,203 12/29/2019
3.0.0-rc.3 38,207 11/28/2019
3.0.0-rc.2 41,385 10/13/2019
3.0.0-rc.1 11,037 9/30/2019
3.0.0-beta.1 29,180 4/26/2019
3.0.0-alpha.1 11,019 4/23/2019
2.3.0 42,590 11/14/2019
2.2.1 19,445 10/13/2019
2.2.0 49,012 8/28/2019
2.1.1 149,113 4/26/2019
2.1.0 69,888 4/8/2019
2.0.1 3,676 4/6/2019
2.0.0 27,171 3/13/2019
2.0.0-beta.5 24,399 2/13/2019
2.0.0-beta.4 2,990 2/11/2019
2.0.0-beta.3 3,672 1/28/2019
2.0.0-beta.2 7,255 1/10/2019
2.0.0-beta.1 13,064 11/12/2018
1.2.0 74,776 1/22/2019
1.1.0 28,096 11/10/2018
1.0.0 26,724 9/26/2018
1.0.0-rc.1 306 9/22/2018
1.0.0-beta.3 299 9/19/2018
1.0.0-beta.2 305 9/10/2018
1.0.0-beta.1 322 8/26/2018
0.8.2 12,051 6/29/2018
0.8.1 5,162 6/20/2018
0.8.0 613 6/12/2018
0.8.0-beta.1 450 5/11/2018
0.7.0 2,705 4/11/2018
0.6.0 583 4/4/2018
0.5.0 660 3/30/2018
0.4.0 661 3/29/2018
0.3.0 622 3/25/2018
0.2.0 555 3/25/2018
0.1.0 625 3/20/2018