Soenneker.Swashbuckle.SchemaFilters.EnumValues 4.0.93

Prefix Reserved
dotnet add package Soenneker.Swashbuckle.SchemaFilters.EnumValues --version 4.0.93
                    
NuGet\Install-Package Soenneker.Swashbuckle.SchemaFilters.EnumValues -Version 4.0.93
                    
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.SchemaFilters.EnumValues" Version="4.0.93" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Swashbuckle.SchemaFilters.EnumValues" Version="4.0.93" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Swashbuckle.SchemaFilters.EnumValues" />
                    
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.SchemaFilters.EnumValues --version 4.0.93
                    
#r "nuget: Soenneker.Swashbuckle.SchemaFilters.EnumValues, 4.0.93"
                    
#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.SchemaFilters.EnumValues@4.0.93
                    
#: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.SchemaFilters.EnumValues&version=4.0.93
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Swashbuckle.SchemaFilters.EnumValues&version=4.0.93
                    
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.SchemaFilters.EnumValues

Generates string-enum OpenAPI schemas for types produced by Soenneker.Gen.EnumValues.

Installation

dotnet add package Soenneker.Swashbuckle.SchemaFilters.EnumValues

Registration

using Soenneker.Swashbuckle.SchemaFilters.EnumValues;

builder.Services.AddSwaggerGen(options =>
{
    options.SchemaFilter<EnumValueSchemaFilter>();
});

Example

using Soenneker.Gen.EnumValues;

[EnumValue<string>]
public sealed partial class EnvironmentName
{
    public static readonly EnvironmentName Development = new("development");
    public static readonly EnvironmentName Production = new("production");
}

The generated OpenAPI schema for EnvironmentName becomes:

type: string
enum:
  - development
  - production

Values are obtained from ToString() on static fields whose type exactly matches the enum-value type. The filter changes schema generation only; it does not configure runtime serialization.

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.93 119 9/16/2026
4.0.92 83 9/16/2026
4.0.91 84 9/16/2026
4.0.90 87 9/15/2026
4.0.89 88 9/13/2026
4.0.88 87 9/13/2026
4.0.87 86 9/12/2026
4.0.86 86 9/12/2026
4.0.85 87 9/12/2026
4.0.83 101 9/9/2026
4.0.82 96 9/8/2026
4.0.81 103 9/7/2026
4.0.80 94 9/4/2026
4.0.79 94 9/3/2026
4.0.78 92 9/2/2026
4.0.77 108 9/1/2026
4.0.75 89 8/31/2026
4.0.74 92 8/31/2026
4.0.73 86 8/31/2026
4.0.72 93 8/30/2026
Loading failed

Updated Multiple NuGet packages