Jtechs.OpenApi.AspNetCore.Swashbuckle
0.1.1
See the version list below for details.
dotnet add package Jtechs.OpenApi.AspNetCore.Swashbuckle --version 0.1.1
NuGet\Install-Package Jtechs.OpenApi.AspNetCore.Swashbuckle -Version 0.1.1
<PackageReference Include="Jtechs.OpenApi.AspNetCore.Swashbuckle" Version="0.1.1" />
paket add Jtechs.OpenApi.AspNetCore.Swashbuckle --version 0.1.1
#r "nuget: Jtechs.OpenApi.AspNetCore.Swashbuckle, 0.1.1"
// Install Jtechs.OpenApi.AspNetCore.Swashbuckle as a Cake Addin #addin nuget:?package=Jtechs.OpenApi.AspNetCore.Swashbuckle&version=0.1.1 // Install Jtechs.OpenApi.AspNetCore.Swashbuckle as a Cake Tool #tool nuget:?package=Jtechs.OpenApi.AspNetCore.Swashbuckle&version=0.1.1
OpenApi.AspNetCore
This package helps openapi swagger.json to have detailed enum information.
Jtechs.OpenApi.AspNetCore
https://www.nuget.org/packages/Jtechs.OpenApi.AspNetCore
Base common file for the openapi helper. Add enum to have title and description to the swagger.json
Jtechs.OpenApi.AspNetCore.Swashbuclke
https://www.nuget.org/packages/Jtechs.OpenApi.AspNetCore.Swashbuckle
Swashbuclke extension to add enum title and description in the $type section.
if you define following enum in C#
[DisplayNameForEnum("MLB League"), Description("MLB League names")]
public enum League
{
[DisplayNameForEnum("American League"), Description("The American League of Professional Baseball Clubs, known simply as the American League (AL), is one of two leagues that make up Major League Baseball (MLB) in the United States and Canada.")]
American = 1,
[DisplayNameForEnum("National League"), Description("The National League of Professional Baseball Clubs, known simply as the National League (NL), is the older of two leagues constituting Major League Baseball (MLB) in the United States and Canada.")]
National = 2,
}
You can use this nuget package and write following in your Program.cs
builder.Services.AddSwaggerGen(options =>
{
options.SchemaFilter<TitleAndDescriptionSchemaFilter>();
options.SchemaFilter<EnumSchemaFilter>();
options.UseAllOfToExtendReferenceSchemas();
});
License
Apache License Version 2.0
See LICENSE
Support
If you would like to support our Open Source Activity, you can do it from our Sponsor Page
Copyright (c) 2024- J-Tech Japan
Product | Versions 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. |
-
net8.0
- Jtechs.OpenApi.AspNetCore (>= 0.1.1)
- Swashbuckle.AspNetCore.SwaggerGen (>= 6.5.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Jtechs.OpenApi.AspNetCore.Swashbuckle:
Package | Downloads |
---|---|
Sekiban.Web
Sekiban - Event Sourcing Framework WebHelper |
GitHub repositories
This package is not used by any popular GitHub repositories.