Enigmatry.Entry.SmartEnums.Swagger
9.1.1-preview.5
dotnet add package Enigmatry.Entry.SmartEnums.Swagger --version 9.1.1-preview.5
NuGet\Install-Package Enigmatry.Entry.SmartEnums.Swagger -Version 9.1.1-preview.5
<PackageReference Include="Enigmatry.Entry.SmartEnums.Swagger" Version="9.1.1-preview.5" />
<PackageVersion Include="Enigmatry.Entry.SmartEnums.Swagger" Version="9.1.1-preview.5" />
<PackageReference Include="Enigmatry.Entry.SmartEnums.Swagger" />
paket add Enigmatry.Entry.SmartEnums.Swagger --version 9.1.1-preview.5
#r "nuget: Enigmatry.Entry.SmartEnums.Swagger, 9.1.1-preview.5"
#:package Enigmatry.Entry.SmartEnums.Swagger@9.1.1-preview.5
#addin nuget:?package=Enigmatry.Entry.SmartEnums.Swagger&version=9.1.1-preview.5&prerelease
#tool nuget:?package=Enigmatry.Entry.SmartEnums.Swagger&version=9.1.1-preview.5&prerelease
Smart Enums Swagger Integration
This library provides Swagger/OpenAPI integration for Smart Enums, enabling proper documentation of Smart Enum types in your API documentation.
Intended Usage
Use this library when you want your Smart Enum types to be properly displayed and documented in Swagger UI, with correct schema generation and example values.
Installation
Add the package to your project:
dotnet add package Enigmatry.Entry.SmartEnums.Swagger
Usage Example
Configure SmartEnums in your NSwag OpenAPI documentation settings:
using Enigmatry.Entry.SmartEnums.Swagger;
using Microsoft.Extensions.DependencyInjection;
using NSwag.Generation.AspNetCore;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
// Add OpenAPI/Swagger documentation with NSwag
services.AddOpenApiDocument(document =>
{
document.Title = "My API";
document.Version = "v1";
// Configure Smart Enum schema processing for Swagger
document.EntryConfigureSmartEnums();
});
}
}
With this configuration, Smart Enum properties in your API controllers will be correctly documented in Swagger UI, showing the available enum values and their descriptions.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net9.0
- Enigmatry.Entry.SmartEnums (>= 9.1.1-preview.5)
- NSwag.Generation.AspNetCore (>= 14.4.0)
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 |
---|---|---|
9.1.1-preview.5 | 179 | 8/8/2025 |
9.1.1-preview.4 | 95 | 6/27/2025 |
9.1.1-preview.3 | 121 | 6/4/2025 |
9.1.0 | 146 | 6/3/2025 |
9.0.1-preview.8 | 128 | 5/26/2025 |
9.0.1-preview.7 | 218 | 5/13/2025 |
9.0.1-preview.6 | 292 | 5/9/2025 |
9.0.1-preview.5 | 149 | 5/7/2025 |
9.0.1-preview.4 | 126 | 4/30/2025 |
9.0.1-preview.2 | 135 | 4/1/2025 |
9.0.0 | 169 | 2/26/2025 |
8.1.1-preview.3 | 129 | 5/7/2025 |
8.1.1-preview.1 | 143 | 4/1/2025 |
8.1.0 | 306 | 2/19/2025 |
8.0.1-preview.4 | 79 | 2/7/2025 |
8.0.1-preview.2 | 65 | 1/15/2025 |
8.0.0 | 734 | 11/27/2024 |
3.4.6-preview.10 | 71 | 11/27/2024 |
3.4.3 | 411 | 10/22/2024 |
3.4.2 | 451 | 10/11/2024 |
3.4.1 | 122 | 10/9/2024 |
3.4.0 | 112 | 10/9/2024 |
3.3.2 | 254 | 8/28/2024 |
3.3.2-preview.7 | 92 | 8/27/2024 |