Enigmatry.Entry.SmartEnums.Swagger 9.1.1-preview.5

This is a prerelease version of Enigmatry.Entry.SmartEnums.Swagger.
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
                    
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="Enigmatry.Entry.SmartEnums.Swagger" Version="9.1.1-preview.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Enigmatry.Entry.SmartEnums.Swagger" Version="9.1.1-preview.5" />
                    
Directory.Packages.props
<PackageReference Include="Enigmatry.Entry.SmartEnums.Swagger" />
                    
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 Enigmatry.Entry.SmartEnums.Swagger --version 9.1.1-preview.5
                    
#r "nuget: Enigmatry.Entry.SmartEnums.Swagger, 9.1.1-preview.5"
                    
#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 Enigmatry.Entry.SmartEnums.Swagger@9.1.1-preview.5
                    
#: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=Enigmatry.Entry.SmartEnums.Swagger&version=9.1.1-preview.5&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Enigmatry.Entry.SmartEnums.Swagger&version=9.1.1-preview.5&prerelease
                    
Install as a Cake Tool

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 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. 
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
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