-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a decorator or other means to specify OpenAPI tag properties #2220
Comments
How should we augment the tags decorator to allow additional metadata? |
Is there a plan to implement this soon? |
Proposal: add a new decorator to the OpenAPI library called
We know we want to disambiguate data values from types via |
I assume multiple instances will merge? |
Yes, like |
fix #2220 --------- Co-authored-by: Kyle Zhang <v-zhanh@microsoft.com> Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
fix microsoft#2220 --------- Co-authored-by: Kyle Zhang <v-zhanh@microsoft.com> Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
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.
TypeSpec should provide a means to populate these properties for any tags used in the API definition.
The text was updated successfully, but these errors were encountered: