Minimal API endpoints do not appear in OpenAPI if WithGroupName() is used #36414
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
feature-minimal-actions
Controller-like actions for endpoint routing
old-area-web-frameworks-do-not-use
*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Describe the bug
If
WithGroupName(string)
is used with a Minimal APIs endpoint, it disappears from being displayed in OpenAPI.Using
WithGroupName()
No
WithGroupName()
To Reproduce
Create an empty ASP.NET Core 6 project with a reference to
Swashbuckle.AspNetCore
with the below code asProgram.cs
.Further technical details
.NET SDK version
6.0.100-rc.1.21460.8
The text was updated successfully, but these errors were encountered: