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

[tcgc] don't set optional .contentTypes property on responses to an empty list #1070

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

iscai-msft
Copy link
Contributor

fixes #992

@azure-sdk
Copy link
Collaborator

All changed packages have been documented.

  • @azure-tools/typespec-client-generator-core
Show changes

@azure-tools/typespec-client-generator-core - fix ✏️

don't let optional .contentTypes on response body be empty. If it's empty, just set it to undefined

@azure-sdk
Copy link
Collaborator

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]: SdkHttpResponse.contentTypes? can be empty array
3 participants