Soenneker.Swashbuckle.IntellenumSchemaFilter
4.0.372
Prefix Reserved
dotnet add package Soenneker.Swashbuckle.IntellenumSchemaFilter --version 4.0.372
NuGet\Install-Package Soenneker.Swashbuckle.IntellenumSchemaFilter -Version 4.0.372
<PackageReference Include="Soenneker.Swashbuckle.IntellenumSchemaFilter" Version="4.0.372" />
<PackageVersion Include="Soenneker.Swashbuckle.IntellenumSchemaFilter" Version="4.0.372" />
<PackageReference Include="Soenneker.Swashbuckle.IntellenumSchemaFilter" />
paket add Soenneker.Swashbuckle.IntellenumSchemaFilter --version 4.0.372
#r "nuget: Soenneker.Swashbuckle.IntellenumSchemaFilter, 4.0.372"
#:package Soenneker.Swashbuckle.IntellenumSchemaFilter@4.0.372
#addin nuget:?package=Soenneker.Swashbuckle.IntellenumSchemaFilter&version=4.0.372
#tool nuget:?package=Soenneker.Swashbuckle.IntellenumSchemaFilter&version=4.0.372
Soenneker.Swashbuckle.IntellenumSchemaFilter
Generates string-enum OpenAPI schemas for Intellenum and Soenneker.Gen.EnumValues value types.
Installation
dotnet add package Soenneker.Swashbuckle.IntellenumSchemaFilter
Registration
using Soenneker.Swashbuckle.IntellenumSchemaFilter;
builder.Services.AddSwaggerGen(options =>
{
options.SchemaFilter<IntellenumSchemaFilter>();
});
Example value type
using Soenneker.Gen.EnumValues;
[EnumValue<string>]
public sealed partial class Orientation
{
public static readonly Orientation Horizontal = new("horizontal");
public static readonly Orientation Vertical = new("vertical");
}
With the filter registered, a property of type Orientation is represented as a string enum:
type: string
enum:
- horizontal
- vertical
The values come from ToString() on static fields whose type exactly matches the generated enum-value type. The filter replaces the object-shaped schema properties with the discovered string values. It does not change runtime JSON serialization; configure the generator's serializer support separately when needed.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Extensions.Enumerable (>= 4.0.667)
- Soenneker.Reflection.Cache (>= 4.0.700)
- Swashbuckle.AspNetCore.SwaggerGen (>= 10.2.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.372 | 86 | 9/16/2026 |
| 4.0.371 | 88 | 9/16/2026 |
| 4.0.370 | 88 | 9/16/2026 |
| 4.0.369 | 95 | 9/15/2026 |
| 4.0.368 | 92 | 9/13/2026 |
| 4.0.367 | 93 | 9/13/2026 |
| 4.0.366 | 93 | 9/12/2026 |
| 4.0.365 | 86 | 9/12/2026 |
| 4.0.364 | 90 | 9/12/2026 |
| 4.0.363 | 95 | 9/12/2026 |
| 4.0.360 | 95 | 9/9/2026 |
| 4.0.359 | 90 | 9/8/2026 |
| 4.0.358 | 98 | 9/7/2026 |
| 4.0.357 | 93 | 9/4/2026 |
| 4.0.356 | 84 | 9/3/2026 |
| 4.0.355 | 94 | 9/3/2026 |
| 4.0.354 | 98 | 9/2/2026 |
| 4.0.353 | 86 | 9/2/2026 |
| 4.0.352 | 88 | 9/1/2026 |
| 4.0.351 | 95 | 9/1/2026 |
Update dependency Soenneker.Reflection.Cache to 4.0.700 (#945)