CapitalSix.AspNetCore.Swagger.AutoResponse 1.0.1

dotnet add package CapitalSix.AspNetCore.Swagger.AutoResponse --version 1.0.1                
NuGet\Install-Package CapitalSix.AspNetCore.Swagger.AutoResponse -Version 1.0.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="CapitalSix.AspNetCore.Swagger.AutoResponse" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CapitalSix.AspNetCore.Swagger.AutoResponse --version 1.0.1                
#r "nuget: CapitalSix.AspNetCore.Swagger.AutoResponse, 1.0.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 CapitalSix.AspNetCore.Swagger.AutoResponse as a Cake Addin
#addin nuget:?package=CapitalSix.AspNetCore.Swagger.AutoResponse&version=1.0.1

// Install CapitalSix.AspNetCore.Swagger.AutoResponse as a Cake Tool
#tool nuget:?package=CapitalSix.AspNetCore.Swagger.AutoResponse&version=1.0.1                

CapitalSix.AspNetCore.Swagger.AutoResponse

This module automatically checks if response types like 400, 401, 403, 417, 429, 500 apply to methods and automatically adds it to the Swagger response documentation.

How to configure the module.

void ConfigureServices(IServicesCollection services)
{
    ...
    services.AddSwaggerGen(c =>
        {
            // Add the response filter. This filter automatically adds
            // 400 and 500 response definition.
            c.OperationFilter<DefaultOperationResponseFilter>();
            
            ...
        });
    ...
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 (1)

Showing the top 1 NuGet packages that depend on CapitalSix.AspNetCore.Swagger.AutoResponse:

Package Downloads
CapitalSix.AspNetCore.Swagger.Xml

This module corrects the XML handling in Swagger in AspNetCore. The default Swagger implementation does not handle XML annotation attributes correctly. This module handles XmlRoot, XmlElement and XmlIgnore attributes in data models.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 3,292 4/22/2022
1.0.0 419 4/21/2022