-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-minimal-actionsController-like actions for endpoint routingController-like actions for endpoint routingold-area-web-frameworks-do-not-use*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Milestone
Description
WithTags
and other OpenApiRouteHandlerBuilderExtensions
don't work with route groups today because they target a custom IEndpointConventionBuilder
type (RouteHandlerBuilder
) rather than any IEndpointConventionBuilder
. While we do plan to support custom convention builder types on route groups (#41427), it shouldn't be necessary for many of the methods on OpenApiRouteHandlerBuilderExtensions
.
var group = app.MapGroup("/todos");
group.WithTags("tag"); // This doesn't compile
group.WithDescription("description"); // ditto
group.WithSummary("summary"); // ditto
Describe the solution you'd like
We should retarget WithTags
and similar methods to IEndpointConventionBuilder
. If we cannot do that without breaking, maybe it should target GroupRouteBuilder
(or a future IRouteGroup
interface).
Metadata
Metadata
Assignees
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-minimal-actionsController-like actions for endpoint routingController-like actions for endpoint routingold-area-web-frameworks-do-not-use*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels