Closed
Description
With the introduction of the Microsoft.AspNetCore.OpenApi
package, we carried over some logic for producing OpenApiResponses
out of the metadata and attributes that a handler had that existing in the ApiExplorer.
This logic assumes some MVC-specific patterns and is fairly complex to reason about, especially when it comes to processing content types that are set on an endpoint.
The new package gives us an opportunity to break away from this tradition and adopt a more simplified hierarchy for how Produces
attributes and metadata are processed on an endpoint.