You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ApiDescription instance for the DocInclusionPredicate contains the api version string as the ApiDescription.GroupName since version 6.2.0 where this property contained the GroupName inherited from the controller (in my case no GroupName was provided for the actions only for the controllers) previously.
This breaks the default behavior described in the documentation and the result will be operation-less OpenApi definition files:
"When selecting actions for a given Swagger document, the generator invokes a DocInclusionPredicate against every ApiDescription that's surfaced by the framework. The default implementation inspects ApiDescription.GroupName and returns true if the value is either null OR equal to the requested document name."
Confirmed. This is a regression due to the new custom grouping feature. This will be fixed and released in the next patch ASAP. Thanks for reporting it.
Is there an existing issue for this?
Describe the bug
ApiDescription instance for the DocInclusionPredicate contains the api version string as the ApiDescription.GroupName since version 6.2.0 where this property contained the GroupName inherited from the controller (in my case no GroupName was provided for the actions only for the controllers) previously.
This breaks the default behavior described in the documentation and the result will be operation-less OpenApi definition files:
"When selecting actions for a given Swagger document, the generator invokes a DocInclusionPredicate against every ApiDescription that's surfaced by the framework. The default implementation inspects ApiDescription.GroupName and returns true if the value is either null OR equal to the requested document name."
On the Swagger UI: "No operations defined in spec!"
Expected Behavior
This should work as it is in the documentation and as it was in version 6.1.0 and before.
Steps To Reproduce
Controllers:
Setup
Exceptions (if any)
No response
.NET Version
.NET 6 latest
Anything else?
TargetFramework: net6.0
Asp.Versioning.Mvc.ApiExplorer 6.3.0, 6.2.0, 6.2.1
Serilog.AspNetCore 6.0.1
Swashbuckle.AspNetCore 6.4.0
Swashbuckle.AspNetCore.Filters 7.0.6
The text was updated successfully, but these errors were encountered: