TinyHelpers.AspNetCore.Swashbuckle 4.0.5

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

// Install TinyHelpers.AspNetCore.Swashbuckle as a Cake Tool
#tool nuget:?package=TinyHelpers.AspNetCore.Swashbuckle&version=4.0.5                

Tiny Helpers for Swashbuckle ASP.NET Core

Lint Code Base CodeQL NuGet Nuget License: MIT

A collection of helper methods and classes for Swashbuckle ASP.NET Core that I use every day. I have packed them in a single library to avoid code duplication.

Installation

The library is available on NuGet. Just search for TinyHelpers.AspNetCore in the Package Manager GUI or run the following command in the .NET CLI:

dotnet add package TinyHelpers.AspNetCore.Swashbuckle

Usage

The library provides some useful extension methods for Swashbuckle ASP.NET Core:

  • AddAcceptLanguageHeader: an extension method for the Swagger implementation provided by Swashbuckle.AspNetCore. It adds the Accept-Language header to swagger.json definition.
builder.Services.AddSwaggerGen(options =>
{
    options.AddAcceptLanguageHeader();
});

Contribute

The project is constantly evolving. Contributions are welcome. Feel free to file issues and pull requests on the repo and we'll address them as we can.

Warning Remember to work on the develop branch, don't use the master branch directly. Create Pull Requests targeting develop.

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.  net9.0 is compatible. 
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.8 128 12/11/2024
4.0.5 112 12/4/2024