Soenneker.Swashbuckle.SchemaFilters.EnumValues
4.0.72
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Swashbuckle.SchemaFilters.EnumValues --version 4.0.72
NuGet\Install-Package Soenneker.Swashbuckle.SchemaFilters.EnumValues -Version 4.0.72
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.72" />
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.72" />
<PackageReference Include="Soenneker.Swashbuckle.SchemaFilters.EnumValues" />
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.72
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Swashbuckle.SchemaFilters.EnumValues, 4.0.72"
#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.72
#: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.72
#tool nuget:?package=Soenneker.Swashbuckle.SchemaFilters.EnumValues&version=4.0.72
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Soenneker.Extensions.Enumerable (>= 4.0.657)
- Soenneker.Reflection.Cache (>= 4.0.666)
- 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.95 | 173 | 9/25/2026 |
| 4.0.94 | 81 | 9/24/2026 |
| 4.0.93 | 207 | 9/16/2026 |
| 4.0.92 | 90 | 9/16/2026 |
| 4.0.91 | 88 | 9/16/2026 |
| 4.0.90 | 91 | 9/15/2026 |
| 4.0.89 | 92 | 9/13/2026 |
| 4.0.88 | 91 | 9/13/2026 |
| 4.0.87 | 91 | 9/12/2026 |
| 4.0.86 | 89 | 9/12/2026 |
| 4.0.85 | 93 | 9/12/2026 |
| 4.0.83 | 104 | 9/9/2026 |
| 4.0.82 | 100 | 9/8/2026 |
| 4.0.81 | 107 | 9/7/2026 |
| 4.0.80 | 97 | 9/4/2026 |
| 4.0.79 | 96 | 9/3/2026 |
| 4.0.78 | 95 | 9/2/2026 |
| 4.0.77 | 112 | 9/1/2026 |
| 4.0.75 | 92 | 8/31/2026 |
| 4.0.72 | 95 | 8/30/2026 |
Loading failed
Clarify EnumValue schema generation