Spruce up OpenApiResponse
creation in Microsoft.AspNetCore.OpenApi
package
#41243
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-openapi
Milestone
With the introduction of the
Microsoft.AspNetCore.OpenApi
package, we carried over some logic for producingOpenApiResponses
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.The text was updated successfully, but these errors were encountered: