Skip to content

Provide a decorator or other means to specify OpenAPI tag properties #2220

@mikekistler

Description

@mikekistler

OpenAPI v2 and v3 support a global "tags" property that associates additional properties -- a description and link to external docs -- with a tag name.

https://github.com/OAI/OpenAPI-Specification/blob/3.0.3/versions/3.0.3.md#tag-object

Many popular doc generators will display the information in these properties in the generated docs.

image

TypeSpec should provide a means to populate these properties for any tags used in the API definition.

Metadata

Metadata

Assignees

Labels

design:neededA design request has been raised that needs a proposalemitter:openapi3Issues for @typespec/openapi3 emitter

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions