MicroElements.Swashbuckle.FluentValidation 5.1.0-rc.2

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

This is a prerelease version of MicroElements.Swashbuckle.FluentValidation.
There is a newer version of this package available.
See the version list below for details.
Install-Package MicroElements.Swashbuckle.FluentValidation -Version 5.1.0-rc.2
dotnet add package MicroElements.Swashbuckle.FluentValidation --version 5.1.0-rc.2
<PackageReference Include="MicroElements.Swashbuckle.FluentValidation" Version="5.1.0-rc.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MicroElements.Swashbuckle.FluentValidation --version 5.1.0-rc.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MicroElements.Swashbuckle.FluentValidation, 5.1.0-rc.2"
#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=5.1.0-rc.2&prerelease

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

Release Notes

$# Changes in 5.1.0:
* Use new registration method AddFluentValidationRulesToSwagger instead of AddFluentValidationRules to allow all feature set
* AddFluentValidationRules become obsolete
* Added ability to set ServiceLifetime in AddFluentValidationRulesToSwagger, default value: Scoped. Fixes #83
* Turned off test rule BeforeAll. Fixes #87
* More detailed warnings in FluentValidationRulesScopeAdapter
* Added detailed error on getting absent property by name

# Changes in 5.0.0:
* FluentValidation updated to 10.0.0
* Swashbuckle.AspNetCore updated to 6.0.0
* RuleContext: Obsolete SchemaFilterContext replaced with ReflectionContext (removed dependency on Swashbuckle)
* Dependency Swashbuckle.AspNetCore changed to Swashbuckle.AspNetCore.SwaggerGen which is UI independent (PR#82 by buvinghausen)
* Added INameResolver to resolve names. Issue #80
* Added AddFluentValidationRulesToSwagger extensions to simplify registration
* FluentValidationSwaggerGenOptions renamed to SchemaGenerationOptions, IsAllOffSupported renamed to UseAllOffForMultipleRules

# 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


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
iNube.Utility.Framework
Added CorelationId,CreatedDate,Error logs
Stone.Util
各个应用程序通用类库

GitHub repositories (1)

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

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

Version History

Version Downloads Last updated
5.2.0 0 7/31/2021
5.1.0 24,850 6/15/2021
5.1.0-rc.2 2,811 6/3/2021
5.1.0-rc.1 1,368 6/1/2021
5.0.0 7,373 5/30/2021
5.0.0-rc.2 3,456 5/18/2021
5.0.0-rc.1 432 5/16/2021
4.3.0 155,529 3/25/2021
4.3.0-rc.1 188 3/21/2021
4.2.0 107,836 2/18/2021
4.1.0 86,445 1/21/2021
4.1.0-rc.1 1,960 1/6/2021
4.0.0 524,351 8/21/2020
4.0.0-rc.2 13,521 7/18/2020
4.0.0-rc.1 65,748 6/15/2020
3.2.0 219,034 6/14/2020
3.1.1 160,049 4/28/2020
3.1.0 132,924 3/25/2020
3.0.0 84,411 3/7/2020
3.0.0-rc.6 42,963 2/5/2020
3.0.0-rc.5 129,788 1/24/2020
3.0.0-rc.4 98,036 12/29/2019
3.0.0-rc.3 41,044 11/28/2019
3.0.0-rc.2 42,545 10/13/2019
3.0.0-rc.1 11,060 9/30/2019
3.0.0-beta.1 29,632 4/26/2019
3.0.0-alpha.1 11,086 4/23/2019
2.3.0 45,163 11/14/2019
2.2.1 19,668 10/13/2019
2.2.0 50,570 8/28/2019
2.1.1 157,931 4/26/2019
2.1.0 76,529 4/8/2019
2.0.1 3,705 4/6/2019
2.0.0 27,732 3/13/2019
2.0.0-beta.5 26,046 2/13/2019
2.0.0-beta.4 3,026 2/11/2019
2.0.0-beta.3 3,685 1/28/2019
2.0.0-beta.2 7,294 1/10/2019
2.0.0-beta.1 13,221 11/12/2018
1.2.0 75,335 1/22/2019
1.1.0 28,734 11/10/2018
1.0.0 26,921 9/26/2018
1.0.0-rc.1 314 9/22/2018
1.0.0-beta.3 306 9/19/2018
1.0.0-beta.2 313 9/10/2018
1.0.0-beta.1 329 8/26/2018
0.8.2 12,342 6/29/2018
0.8.1 5,478 6/20/2018
0.8.0 642 6/12/2018
0.8.0-beta.1 463 5/11/2018
0.7.0 2,763 4/11/2018
0.6.0 612 4/4/2018
0.5.0 689 3/30/2018
0.4.0 695 3/29/2018
0.3.0 651 3/25/2018
0.2.0 584 3/25/2018
0.1.0 665 3/20/2018