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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Swashbuckle.IntellenumSchemaFilter" Version="4.0.372" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Swashbuckle.IntellenumSchemaFilter" Version="4.0.372" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Swashbuckle.IntellenumSchemaFilter" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Swashbuckle.IntellenumSchemaFilter --version 4.0.372
                    
#r "nuget: Soenneker.Swashbuckle.IntellenumSchemaFilter, 4.0.372"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Swashbuckle.IntellenumSchemaFilter@4.0.372
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Swashbuckle.IntellenumSchemaFilter&version=4.0.372
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Swashbuckle.IntellenumSchemaFilter&version=4.0.372
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

Update dependency Soenneker.Reflection.Cache to 4.0.700 (#945)