All notable changes to this project will be documented in this file.
For each release both ASP.NET Core 3.X and ASP.NET Core 2.X packages are referenced.
- Add support for .NET 6.0 applications
- Add option to skip default area, controller and action values when possible.
services.AddSwaggerGenWithConventionalRoutes(options =>
{
options.SkipDefaults = true;
});
- Added support for .NET 5.0 framework
- Define
SwaggerRoutingConfiguration
options during registration to ignore conventional routes based on their template
- Add
SwaggerConfig
attribute and support for ignoring specific Controller Actions in swagger generation
- Remove api explorer dependency from netcore 3.x builds
- One package supports both ASP.NET Core 2.2 & ASP.NET Core 3.X applications
- Master branch is used for both ASP.NET Core 2.2 & ASP.NET Core 3.X builds
- Update original referenced
Swashbuckle.AspNetCore
to version5.6.3
- Use different tags for controllers with the same name but different area using {area}.{controller} format. This can always by overridden using the default
.SwaggerGen
options:
services.AddSwaggerGen(c =>
{
c.TagActionsBy(apiDesc =>
{
if (apiDesc.GroupName != null)
{
return new[] { apiDesc.GroupName };
}
var controllerActionDescriptor = apiDesc.ActionDescriptor as ControllerActionDescriptor;
return new[] { $"MyCustomMessage{controllerActionDescriptor.ControllerName}" };
});
});
- Support area based controllers