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

tsp-openapi3 - support generating summary decorator #4906

Merged
merged 4 commits into from
Oct 30, 2024

Conversation

chrisradek
Copy link
Member

Fixes #4489 and fixes #4614

This now generates the @summary decorator based on either the Component schema title field, or the path item summary field.

Christopher Radek added 3 commits October 29, 2024 15:02
@chrisradek chrisradek changed the title Tsp openapi3 fix summary tsp-openapi3 - support generating summary decorator Oct 29, 2024
@azure-sdk
Copy link
Collaborator

azure-sdk commented Oct 29, 2024

All changed packages have been documented.

  • @typespec/openapi3
Show changes

@typespec/openapi3 - feature ✏️

Updates tsp-openapi3 to support generating @summary decorators for models and operations from schema title and path item summary fields.

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
@chrisradek chrisradek added this pull request to the merge queue Oct 30, 2024
Merged via the queue into microsoft:main with commit d768220 Oct 30, 2024
22 checks passed
@chrisradek chrisradek deleted the tsp-openapi3-fix-summary branch October 30, 2024 15:57
swatkatz pushed a commit to swatkatz/typespec that referenced this pull request Nov 5, 2024
Fixes microsoft#4489 and fixes microsoft#4614

This now generates the `@summary` decorator based on either the
Component schema `title` field, or the path item `summary` field.

---------

Co-authored-by: Christopher Radek <Christopher.Radek@microsoft.com>
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
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.

[Bug]: tsp-openapi3: operation summaries not imported [Bug]: tsp-openapi3: model title not imported
3 participants