MicroElements.OpenApi.FluentValidation 6.0.0
Package Description
Showing the top 20 packages that depend on MicroElements.OpenApi.FluentValidation.
| Packages | Downloads |
|---|---|
|
MicroElements.Swashbuckle.FluentValidation
Swagger ISchemaFilter that uses FluentValidation validators instead System.ComponentModel based attributes.
|
285 |
$# Changes in 6.0.0
- see changelog for betas
Changes in 6.0.0 - beta.3:
- Added:
IFluentValidationRuleProvidercan be replaced with DI - Added:
ISchemaGenerationOptions.ValidatorSearchIsOneValidatorForType: bool; Valuetrue: Gets only one validator (default),false: Gets all suitable validators (new)SearchBaseTypeValidators: allows to search base type validators
- Fixed: Stack Overflow Exception when using recursive validator type (PR#122 by @rachelpetitto)
- Deleted:
FluentValidationRulesRegistrator - Deleted:
SwaggerGenOptionsfrom filters - Many minor code cleanups
Changes in 6.0.0 - beta.2:
- Codebase unified with NSwag
- Added: MicroElements.NSwag.FluentValidation package. Early version
- Change:
INameResolverremoved from FluentValidationRules ctor. Set it fromSchemaGenerationOptions - Change:
ISchemaGenerationSettingsmerged toISchemaGenerationOptions - Change:
IValidatorRegistryand it's implementations moved to MicroElements.OpenApi.FluentValidation namespace and package - Change:
IValidatorRegistrycan return more than one validator with methodGetValidators - Added:
ValidatorSearchstrategy OneForType, ManyForType - Added:
ISchemaGenerationOptions.ValidatorFilter,ISchemaGenerationOptions.RuleFilter,ISchemaGenerationOptions.RuleComponentFilter- Default Rule and RuleComponent filters checks that rule or component has no conditions.
- Default ValidatorFilter checks that validator CanValidateInstancesOfType
- Change:
UseAllOfForMultipleRulestypo fix
Changes in 6.0.0 - beta.1:
- Abstracted common logic for NSwag
- Moved from
IValidationFactory(obsolete in FV 11.1.0) toIValidationRegistry - Supported FluentValidation 11
AddFluentValidationAutoValidation - Removed
HttpContextServiceProviderValidatorFactory - Experimental
DocumentFilter
Changes in 5.7.0:
- Change: ILengthValidator support for arrays. Sets MinItems, MaxItems (PR#108 by biggik)
Full release notes can be found at: https://github.com/micro-elements/MicroElements.Swashbuckle.FluentValidation/blob/master/CHANGELOG.md
.NET Standard 2.0
- FluentValidation (>= 10.0.0 && < 12.0.0)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.1.0)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Options (>= 6.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 7.0.1 | 0 | 2025-12-08 |
| 6.1.1 | 0 | 2025-09-02 |
| 6.1.0 | 0 | 2024-11-26 |
| 6.0.0 | 25 | 2025-05-06 |
| 6.0.0-beta.3 | 0 | 2023-02-19 |
| 6.0.0-beta.1 | 0 | 2022-07-23 |