StrongTypedId.Swagger 1.9.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package StrongTypedId.Swagger --version 1.9.1                
NuGet\Install-Package StrongTypedId.Swagger -Version 1.9.1                
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="StrongTypedId.Swagger" Version="1.9.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add StrongTypedId.Swagger --version 1.9.1                
#r "nuget: StrongTypedId.Swagger, 1.9.1"                
#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.
// Install StrongTypedId.Swagger as a Cake Addin
#addin nuget:?package=StrongTypedId.Swagger&version=1.9.1

// Install StrongTypedId.Swagger as a Cake Tool
#tool nuget:?package=StrongTypedId.Swagger&version=1.9.1                

StrongTypedId.Swagger

This package provides support for using StrongTypedId with Swagger, to provide proper type mapping for your APIs.

Usage

Call MapStrongType during your Swagger setup like below:

builder.Services.AddSwaggerGen(options => {
    options.MapStrongType<UserId, Guid>();
    options.MapStrongType<EmailAddress, string>();
});

There's also the option of mapping types without generics:

builder.Services.AddSwaggerGen(options => {
    options.MapStrongType(typeof(UserId), typeof(Guid));
});
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.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
1.9.2 80 11/15/2024
1.9.1 72 11/13/2024
1.9.0 85 11/11/2024
1.8.0 386 8/26/2024
1.7.0 219 5/10/2024
1.6.6 145 2/9/2024
1.6.5 111 2/5/2024
1.6.4 110 1/31/2024
1.6.3 135 1/8/2024
1.6.2 148 10/10/2023
1.6.1 123 9/8/2023
1.6.0 169 7/18/2023
1.5.1 146 7/15/2023
1.5.0 158 7/15/2023