Move OpenAPI extension methods to M.A.Builder namespace #42445
Labels
api-approved
API was approved in API review, it can be implemented
area-web-frameworks
*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Milestone
Background and Motivation
In preview4, we introduced support for an OpenAPI package that included extension methods on the then
RouteHandlerBuilder
(nowIEndpointBuilder
) for constructing anOpenApiOperation
from an endpoint. These extension methods were placed in theMicrosoft.AspNetCore.OpenApi
namespace.For consistency with the rest of the ecosystem, we want to move these extension methods to the Microsoft.AspNetCore.Builder namespace.
Proposed API
Usage Examples
Before Change
With Change
Alternative Designs
Not applicable.
Risks
None, API waas introduced in .NET 7 so no risk of breaking change and delta allows us to confirm with the standard for builder extension methods elsewhere.
The text was updated successfully, but these errors were encountered: