Allow parameter and return types of route handler delegates (API Controllers) to contribute to endpoint metadata #41421
Labels
feature-openapi
old-area-web-frameworks-do-not-use
*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Milestone
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
Introduce the capability for types used for parameters and return values for
API controller action
s to contribute to metadata of the endpoint they're mapped to. This will allow types that implement custom binding logic via TryParse and IResult types, to add metadata that describes the API parameters and responses in Swagger UI and OpenAPI documents.This is an idea of feature parity with Minimal API, after #40646.
Describe the solution you'd like
We should introduce the same support for the new interfaces,
IEndpointParameterMetadataProvider
andIEndpointMetadataProvider
that currently is implemented in Minimal Actions.Additional context
No response
The text was updated successfully, but these errors were encountered: