Skip to content

Spruce up OpenApiResponse creation in Microsoft.AspNetCore.OpenApi package #41243

Closed
@captainsafia

Description

@captainsafia

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.

Metadata

Metadata

Assignees

Labels

area-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-openapi

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions