Skip to content
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

Support @summary on data types in OpenAPI3, emitting title #2597

Merged
merged 5 commits into from
Oct 23, 2023

Conversation

bterlson
Copy link
Member

This PR allows @summary on models, enums, etc., and emits the JSON Schema title field. This is perhaps a bit strange, given that in OpenAPI summary and title are different, however in JSON Schema, we use @summary to emit title already, so this just aligns the two. Additionally, the description of summary in OpenAPI and title in JSON Schema are effectively identical.

@github-actions
Copy link
Contributor

Changes in this PR will be published to the following url to try(check status of TypeSpec Pull Request Try It pipeline for publish status):
Playground: https://cadlplayground.z22.web.core.windows.net/prs/2597/

Website: https://tspwebsitepr.z22.web.core.windows.net/prs/2597/

@bterlson
Copy link
Member Author

@mikekistler approves this approach so we can merge.

@bterlson bterlson merged commit be937a8 into microsoft:main Oct 23, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants