Add support for copy constructors to Microsoft.OpenApi.Models objects #832
Labels
priority:p1
High priority but not blocking. Causes major but not critical loss of functionality SLA <=7days
type:enhancement
Enhancement request targeting an existing experience
Milestone
As outlined in dotnet/aspnetcore#40676 and implemented in dotnet/aspnetcore#41238, we're introducing support for a new
Microsoft.AspNetCore.OpenApi
package that acts as a link betweenMicrosoft.OpenApi
and route handler endpoints.This package exposes a
WithOpenApi
extension method that users can invoke on their endpoints to mutate theOpenApiOperation
that we generate by default from the handler'sMethodInfo
with their own annotation. For example,One of the things we thought would be compelling was support for a copy constructor for
OpenApiOperation
so that users can invoke the following and have their modification automatically merged into the generated operation.The text was updated successfully, but these errors were encountered: