MicroElements.Swashbuckle.FluentValidation 7.0.4-beta.2
Swagger ISchemaFilter that uses FluentValidation validators instead System.ComponentModel based attributes.
Showing the top 20 packages that depend on MicroElements.Swashbuckle.FluentValidation.
| Packages | Downloads |
|---|---|
|
JQ.Common.Infrastructure
用于HIS2.0全部的第三方dll
|
1 |
|
JQ.Common.Infrastructure
用于HIS2.0全部的第三方dll
|
2 |
|
JQ.Common.Infrastructure
用于HIS2.0全部的第三方dll
|
3 |
|
JQ.Common.Infrastructure
用于HIS2.0全部的第三方dll
|
5 |
|
JQ.Common.Infrastructure
用于HIS2.0全部的第三方dll
|
8 |
|
JQ.Common.Infrastructure
用于HIS2.0全部的第三方dll
|
9 |
|
JQ.Common.Infrastructure
用于HIS2.0全部的第三方dll
|
11 |
|
JQ.Common.Infrastructure
用于HIS2.0全部的第三方dll
|
14 |
|
JQ.Common.Infrastructure
用于HIS2.0全部的第三方dll
|
15 |
|
JQ.Common.Infrastructure
用于HIS2.0全部的第三方dll
|
16 |
|
JQ.Common.Infrastructure
用于HIS2.0全部的第三方dll
|
18 |
|
JQ.Common.Infrastructure
用于HIS2.0全部的第三方dll
|
19 |
|
JQ.Common.Infrastructure
用于HIS2.0全部的第三方dll
|
30 |
|
JQ.Common.Infrastructure
用于HIS2.0全部的第三方dll
|
47 |
|
JQ.Common.Infrastructure
用于HIS2.0全部的第三方dll
|
54 |
$# Changes in 7.0.4-beta.2
- Added: Support for keyed DI services (Issue #165)
- Validators registered via `AddKeyedScoped`, `AddKeyedTransient`, `AddKeyedSingleton` are now discovered automatically
- Works with both `GetValidator` (OperationFilter/DocumentFilter) and `GetValidators` (SchemaFilter) paths
- Registration order independent — keyed validators registered before or after `AddFluentValidationRulesToSwagger()` are discovered
- Deduplication: same validator registered as both keyed and non-keyed is returned only once
- Graceful fallback: no impact when keyed services are not used or DI container doesn't support `IKeyedServiceProvider`
# Changes in 7.0.4-beta.1
- Fixed: `[AsParameters]` types in minimal API and `[FromQuery]` container types create unused schemas in `components/schemas` (Issue #180)
- `GetSchemaForType()` registers schemas in `SchemaRepository` as a side-effect of `GenerateSchema()`
- Added check-and-cleanup: snapshot existing schema IDs before processing, remove side-effect schemas after applying validation rules to parameters
- Fix applied to both default path (`FluentValidationOperationFilter`) and experimental path (`FluentValidationDocumentFilter`)
# Changes in 7.0.3
- Fixed: NullReferenceException when models contain nested object properties (Issue #176 extended)
- Handle `OpenApiSchemaReference` for nested class properties in `OpenApiRuleContext`
- Add safe `TryGetValue` check in `NSwagRuleContext`
# Changes in 7.0.2
- Fixed: InvalidCastException when models contain enum properties (Issue #176)
- In Microsoft.OpenApi 2.x, enum properties are represented as `OpenApiSchemaReference` instead of `OpenApiSchema`
- Filter out schema references in `GetProperties()` method to avoid cast exception
# Changes in 7.0.1
- Fixed: FluentValidation rules not applied to `[FromForm]` parameters (Issue #170)
- Added `RequestBody` processing in `FluentValidationOperationFilter` for `multipart/form-data` and `application/x-www-form-urlencoded` content types
Full release notes can be found at: https://github.com/micro-elements/MicroElements.Swashbuckle.FluentValidation/blob/master/CHANGELOG.md
.NET 8.0
- MicroElements.OpenApi.FluentValidation (>= 7.0.4-beta.2)
- Swashbuckle.AspNetCore.SwaggerGen (>= 8.1.1)
.NET 9.0
- MicroElements.OpenApi.FluentValidation (>= 7.0.4-beta.2)
- Swashbuckle.AspNetCore.SwaggerGen (>= 8.1.1)
.NET 10.0
- MicroElements.OpenApi.FluentValidation (>= 7.0.4-beta.2)
- Swashbuckle.AspNetCore.SwaggerGen (>= 10.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 7.1.5-beta | 0 | 2026/4/1 |
| 7.1.4 | 0 | 2026/3/29 |
| 7.1.4-beta | 0 | 2026/3/24 |
| 7.1.3 | 0 | 2026/3/24 |
| 7.1.2 | 0 | 2026/3/9 |
| 7.1.1 | 1 | 2026/4/11 |
| 7.1.0 | 1 | 2026/4/11 |
| 7.1.0-beta.2 | 1 | 2026/4/9 |
| 7.1.0-beta.1 | 0 | 2026/2/23 |
| 7.0.6 | 1 | 2026/4/11 |
| 7.0.5 | 0 | 2026/2/26 |
| 7.0.4 | 0 | 2026/2/17 |
| 7.0.4-beta.3 | 1 | 2026/4/9 |
| 7.0.4-beta.2 | 1 | 2026/4/9 |
| 7.0.4-beta.1 | 1 | 2026/4/9 |
| 7.0.3 | 0 | 2025/12/23 |
| 7.0.2 | 0 | 2025/12/23 |
| 7.0.1 | 1 | 2026/4/11 |
| 7.0.0 | 1 | 2026/4/11 |
| 6.1.1 | 1 | 2026/4/11 |
| 6.1.0 | 1 | 2026/4/11 |
| 6.0.0 | 1 | 2026/4/11 |
| 6.0.0-beta.3 | 0 | 2023/2/19 |
| 6.0.0-beta.1 | 0 | 2022/7/23 |
| 5.7.0 | 0 | 2022/6/10 |
| 5.6.0 | 1 | 2026/4/11 |
| 5.5.0 | 1 | 2026/4/11 |
| 5.4.0 | 15 | 2025/2/28 |
| 5.3.0 | 0 | 2021/9/1 |
| 5.2.0 | 0 | 2021/7/31 |
| 5.1.0 | 1 | 2026/4/11 |
| 5.1.0-rc.2 | 0 | 2021/6/3 |
| 5.1.0-rc.1 | 1 | 2026/4/9 |
| 5.0.0 | 1 | 2026/4/11 |
| 5.0.0-rc.2 | 1 | 2026/4/9 |
| 5.0.0-rc.1 | 1 | 2026/4/9 |
| 4.3.0 | 1 | 2026/4/11 |
| 4.3.0-rc.1 | 0 | 2021/3/21 |
| 4.2.0 | 1 | 2026/4/11 |
| 4.1.0 | 1 | 2026/4/11 |
| 4.1.0-rc.1 | 1 | 2026/4/9 |
| 4.0.0 | 1 | 2026/4/11 |
| 4.0.0-rc.2 | 1 | 2026/4/9 |
| 4.0.0-rc.1 | 1 | 2026/4/9 |
| 3.2.0 | 1 | 2026/4/11 |
| 3.1.1 | 1 | 2026/4/11 |
| 3.1.0 | 1 | 2026/4/11 |
| 3.0.0 | 1 | 2026/4/11 |
| 3.0.0-rc.6 | 0 | 2020/2/5 |
| 3.0.0-rc.5 | 0 | 2020/1/24 |
| 3.0.0-rc.4 | 0 | 2019/12/29 |
| 3.0.0-rc.3 | 0 | 2019/11/28 |
| 3.0.0-rc.2 | 0 | 2019/10/13 |
| 3.0.0-rc.1 | 0 | 2019/9/30 |
| 3.0.0-beta.1 | 0 | 2019/4/26 |
| 3.0.0-alpha.1 | 0 | 2019/4/23 |
| 2.3.0 | 1 | 2026/4/11 |
| 2.2.1 | 0 | 2019/10/13 |
| 2.2.0 | 1 | 2026/4/11 |
| 2.1.1 | 5 | 2025/3/3 |
| 2.1.0 | 1 | 2026/4/11 |
| 2.0.1 | 1 | 2026/4/11 |
| 2.0.0 | 1 | 2026/4/9 |
| 2.0.0-beta.5 | 0 | 2019/2/13 |
| 2.0.0-beta.4 | 0 | 2019/2/11 |
| 2.0.0-beta.3 | 0 | 2019/1/28 |
| 2.0.0-beta.2 | 0 | 2019/1/10 |
| 2.0.0-beta.1 | 0 | 2018/11/12 |
| 1.2.0 | 1 | 2026/4/11 |
| 1.1.0 | 1 | 2026/4/11 |
| 1.0.0 | 1 | 2026/4/11 |
| 1.0.0-rc.1 | 0 | 2018/9/22 |
| 1.0.0-beta.3 | 0 | 2018/9/19 |
| 1.0.0-beta.2 | 0 | 2018/9/10 |
| 1.0.0-beta.1 | 0 | 2018/8/26 |
| 0.8.2 | 0 | 2018/6/29 |
| 0.8.1 | 1 | 2026/4/11 |
| 0.8.0 | 1 | 2026/4/11 |
| 0.8.0-beta.1 | 0 | 2018/5/11 |
| 0.7.0 | 1 | 2026/4/11 |
| 0.6.0 | 1 | 2026/4/11 |
| 0.5.0 | 1 | 2026/4/11 |
| 0.4.0 | 1 | 2026/4/11 |
| 0.3.0 | 1 | 2026/4/11 |
| 0.2.0 | 1 | 2026/4/11 |
| 0.1.0 | 1 | 2026/4/11 |