MicroElements.Swashbuckle.FluentValidation 4.0.0

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

Install-Package MicroElements.Swashbuckle.FluentValidation -Version 4.0.0
dotnet add package MicroElements.Swashbuckle.FluentValidation --version 4.0.0
<PackageReference Include="MicroElements.Swashbuckle.FluentValidation" Version="4.0.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.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

$# 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

# Changes in 3.1.1:
* Mark required properties as not nullable (PR#58 by @manne) Fixes: #55, #57

# Changes in 3.1.0:
* Swashbuckle.AspNetCore updated to version >= 5.2.0
* Fixed: #53 (Missing method exception when using Swashbuckle > 5.0.0)

# Changes in 3.0.0:
* Supports Swashbuckle 5, net core 3 and brand new System.Text.Json
* Swashbuckle.AspNetCore updated to version >= 5.0.0 (new Microsoft.OpenApi)
* FluentValidation updated to version >= 8.3

* FluentValidation property rules of type CollectionValidationRules (RuleForEach()) are no longer exposed #49.
* New IgnoreAllStringComparer was invented to solve problem with different property name formatting: camelCase, PascalCase, snake_case, kebab-case
* Added NewtonsoftJsonNamingPolicy example to override property name formatting in new System.Text.Json according Newtonsoft.Json.Serialization.NamingStrategy (see: SampleWebApi)
* Fixed invalid documentation on validation rules containing a condition #38
* Fixed: #37 (FluentValidationOperationFilter now uses swachbuckle interface to determine json settings)


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

NuGet packages (15)

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

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

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
4.0.0 54,025 8/21/2020
4.0.0-rc.2 8,490 7/18/2020
4.0.0-rc.1 7,427 6/15/2020
3.2.0 82,744 6/14/2020
3.1.1 100,909 4/28/2020
3.1.0 74,352 3/25/2020
3.0.0 55,239 3/7/2020
3.0.0-rc.6 28,450 2/5/2020
3.0.0-rc.5 62,530 1/24/2020
3.0.0-rc.4 80,454 12/29/2019
3.0.0-rc.3 29,377 11/28/2019
3.0.0-rc.2 37,182 10/13/2019
3.0.0-rc.1 10,114 9/30/2019
3.0.0-beta.1 28,136 4/26/2019
3.0.0-alpha.1 3,808 4/23/2019
2.3.0 35,895 11/14/2019
2.2.1 18,726 10/13/2019
2.2.0 41,806 8/28/2019
2.1.1 126,736 4/26/2019
2.1.0 49,745 4/8/2019
2.0.1 3,562 4/6/2019
2.0.0 25,198 3/13/2019
2.0.0-beta.5 18,661 2/13/2019
2.0.0-beta.4 2,608 2/11/2019
2.0.0-beta.3 3,528 1/28/2019
2.0.0-beta.2 7,088 1/10/2019
2.0.0-beta.1 12,701 11/12/2018
1.2.0 73,758 1/22/2019
1.1.0 25,773 11/10/2018
1.0.0 24,758 9/26/2018
1.0.0-rc.1 179 9/22/2018
1.0.0-beta.3 165 9/19/2018
1.0.0-beta.2 166 9/10/2018
1.0.0-beta.1 187 8/26/2018
0.8.2 11,007 6/29/2018
0.8.1 4,048 6/20/2018
0.8.0 451 6/12/2018
0.8.0-beta.1 320 5/11/2018
0.7.0 2,350 4/11/2018
0.6.0 414 4/4/2018
0.5.0 493 3/30/2018
0.4.0 489 3/29/2018
0.3.0 462 3/25/2018
0.2.0 394 3/25/2018
0.1.0 415 3/20/2018