Skip to content

OpenAPI metadata are only filled when a controller has [ApiController] attribute #34641

Open
@steveo068

Description

Description

In the page "Include OpenAPI Metadata", there are no mentions that a controller needs to have the [ApiController] attribute to be surfaced in the OpenAPI document.

Could you review the document to include this requirement?

See the ticket dotnet/aspnetcore#58938.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/include-metadata?view=aspnetcore-9.0&tabs=minimal-apis

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/openapi/include-metadata.md

Document ID

cbc730ec-642f-480d-4a41-044c6c6ef7d3

Article author

@captainsafia

Metadata

  • ID: cbc730ec-642f-480d-4a41-044c6c6ef7d3
  • Service: aspnet-core
  • Sub-service: fundamentals

Related Issues

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions