![]() |
VOOZH | about |
dotnet add package MicroElements.Swashbuckle.FluentValidation --version 7.1.1
NuGet\Install-Package MicroElements.Swashbuckle.FluentValidation -Version 7.1.1
<PackageReference Include="MicroElements.Swashbuckle.FluentValidation" Version="7.1.1" />
<PackageVersion Include="MicroElements.Swashbuckle.FluentValidation" Version="7.1.1" />Directory.Packages.props
<PackageReference Include="MicroElements.Swashbuckle.FluentValidation" />Project file
paket add MicroElements.Swashbuckle.FluentValidation --version 7.1.1
#r "nuget: MicroElements.Swashbuckle.FluentValidation, 7.1.1"
#:package MicroElements.Swashbuckle.FluentValidation@7.1.1
#addin nuget:?package=MicroElements.Swashbuckle.FluentValidation&version=7.1.1Install as a Cake Addin
#tool nuget:?package=MicroElements.Swashbuckle.FluentValidation&version=7.1.1Install as a Cake Tool
Swagger ISchemaFilter that uses FluentValidation validators instead System.ComponentModel based attributes.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on MicroElements.Swashbuckle.FluentValidation:
| Package | Downloads |
|---|---|
|
Reo.Core.Queue.RabbitMq
Package Description |
|
|
Reo.Core.Email
Package Description |
|
|
Mii.Rinjani.Gateway.Commons
Package Description |
|
|
H21.AspNetCore.Validation
Package Description |
|
|
WalletFramework.AspNetCore.Contracts
Api Library |
Showing the top 4 popular GitHub repositories that depend on MicroElements.Swashbuckle.FluentValidation:
| Repository | Stars |
|---|---|
|
AlphaYu/adnc
A pragmatic .NET 8 framework for modular monoliths to evolve seamlessly into distributed microservices.
|
|
|
AntonioFalcaoJr/EventualShop
A state-of-the-art distributed system using Reactive DDD as uncertainty modeling, Event Storming as subdomain decomposition, Event Sourcing as an eventual persistence mechanism, CQRS, Async Projections, Microservices for individual deployable units, Event-driven Architecture for efficient integration, and Clean Architecture as domain-centric design
|
|
|
nhonvo/clean-architecture-net-8.0
Clean Architecture Web API Project
|
|
|
melikpehlivanov/AuctionSystem
Auction system written in ASP.NET Core
|
| Version | Downloads | Last Updated |
|---|---|---|
| 7.1.8-beta.2 | 64 | 6/21/2026 |
| 7.1.8-beta.1 | 59 | 6/20/2026 |
| 7.1.7 | 8,677 | 6/20/2026 |
| 7.1.7-beta.3 | 81 | 6/17/2026 |
| 7.1.7-beta.2 | 69 | 6/17/2026 |
| 7.1.7-beta.1 | 68 | 6/15/2026 |
| 7.1.6 | 31,413 | 6/2/2026 |
| 7.1.6-beta.1 | 51 | 6/2/2026 |
| 7.1.5-beta.2 | 424 | 5/16/2026 |
| 7.1.5-beta | 425 | 4/1/2026 |
| 7.1.4 | 250,359 | 3/29/2026 |
| 7.1.4-beta | 148 | 3/24/2026 |
| 7.1.3 | 11,648 | 3/24/2026 |
| 7.1.2 | 67,003 | 3/9/2026 |
| 7.1.1 | 1,680 | 3/9/2026 |
| 7.1.0 | 1,641 | 3/9/2026 |
| 7.1.0-beta.2 | 76 | 3/6/2026 |
| 7.1.0-beta.1 | 228 | 2/23/2026 |
| 7.0.6 | 22,880 | 3/3/2026 |
| 7.0.5 | 11,682 | 2/26/2026 |
$# Changes in 7.1.1
- Fixed: Nested object validation not applied for `[FromQuery]` parameters (Issue #162)
- When Swashbuckle decomposes `[FromQuery]` models with nested objects into flat parameters (e.g., `operation.op`), the full dot-path name was used for schema property matching instead of the leaf name (`op`)
- `EqualsIgnoreAll("operation.op", "op")` compared `"OPERATIONOP"` vs `"OP"` and failed to match
- Strip dot-path prefix using `LastIndexOf('.')` in both `FluentValidationOperationFilter` and `FluentValidationDocumentFilter`
- Supports arbitrarily deep nesting (e.g., `a.b.c` → `c`)
- Added: `SetNotNullableIfMinimumGreaterThenZero` option to separately control nullable behavior for numeric Minimum constraints (Issue #154, ported from vchirikov fork PR #2)
- Distinct from existing `SetNotNullableIfMinLengthGreaterThenZero` (for string MinLength)
- Default: `false` (backward compatible)
- Fixed: `SetNotNullableIfMinLengthGreaterThenZero` option now works in NSwag provider (Issue #154)
- `NSwagFluentValidationRuleProvider` now accepts `IOptions<SchemaGenerationOptions>`
- Rules NotEmpty, Length, Comparison, Between respect both nullable options
- Feature parity across Swashbuckle, AspNetCore.OpenApi, and NSwag providers
- Improved: Comparison/Between rules now use `SetNotNullableIfMinimumGreaterThenZero()` which checks actual Minimum value instead of unconditionally setting not-nullable
# Changes in 7.1.0
- Added: New package `MicroElements.AspNetCore.OpenApi.FluentValidation` for Microsoft.AspNetCore.OpenApi support (Issue #149)
- Implements `IOpenApiSchemaTransformer` for .NET 9 and .NET 10
- Supports all FluentValidation rules: Required, NotEmpty, Length, Pattern, Email, Comparison, Between
- Handles AllOf/OneOf/AnyOf sub-schemas for polymorphic models
- No dependency on Swashbuckle
- User-facing API: `services.AddFluentValidationRulesToOpenApi()` + `options.AddFluentValidationRules()`
- .NET 10: full nested validator support via `GetOrCreateSchemaAsync`
- .NET 9: limited nested validator support (fallback to empty schema)
- Fixed: AspNetCore.OpenApi.FluentValidation support for .NET 10 (Issue #149, PR #192)
- Added: Sample project `SampleAspNetCoreOpenApi` demonstrating Microsoft.AspNetCore.OpenApi integration
- Added: ADR-001 documenting the architectural decision for AspNetCore.OpenApi support
# Changes in 7.1.0-beta.1
- Added: New package `MicroElements.AspNetCore.OpenApi.FluentValidation` for Microsoft.AspNetCore.OpenApi support (Issue #149)
- Implements `IOpenApiSchemaTransformer` for .NET 9 and .NET 10
- Supports all FluentValidation rules: Required, NotEmpty, Length, Pattern, Email, Comparison, Between
- Handles AllOf/OneOf/AnyOf sub-schemas for polymorphic models
- No dependency on Swashbuckle
- User-facing API: `services.AddFluentValidationRulesToOpenApi()` + `options.AddFluentValidationRules()`
- .NET 10: full nested validator support via `GetOrCreateSchemaAsync`
- .NET 9: limited nested validator support (fallback to empty schema)
- Added: Sample project `SampleAspNetCoreOpenApi` demonstrating Microsoft.AspNetCore.OpenApi integration
- Added: ADR-001 documenting the architectural decision for AspNetCore.OpenApi support
# Changes in 7.0.6
- Fixed: `[AsParameters]` validation rules not applied on .NET 8 Minimal APIs (Issue #180)
- On .NET 8, `ModelMetadata.ContainerType` is null for `[AsParameters]` decomposed parameters
- Added `AsParametersHelper` fallback that resolves the container type via `[AsParameters]` reflection on `MethodInfo`
- Applied fallback in both `FluentValidationOperationFilter` and `FluentValidationDocumentFilter`
- Zero regression on .NET 9/10 where `ContainerType` is already populated
# Changes in 7.0.5
- Added: `RemoveUnusedQuerySchemas` option (default: `true`) to control cleanup of
container type schemas for `[FromQuery]`/`[AsParameters]` types (Issue #180)
Full release notes can be found at: https://github.com/micro-elements/MicroElements.Swashbuckle.FluentValidation/blob/master/CHANGELOG.md