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

[OpenAPI3] Fix: Using @body _: void in operation parameters and treat it as no body. #2609

Merged
merged 3 commits into from
Oct 30, 2023

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Oct 27, 2023

op test(@body _: void): string;

Will not crash and be treated as no request body

@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/2609/

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

@timotheeguerin timotheeguerin changed the title Fix: Void request body [OpenAPI3] Fix: Using @body _: void in operation parameters and treat it as no body. Oct 27, 2023
@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/2609/

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

@timotheeguerin timotheeguerin merged commit 8b22fae into microsoft:main Oct 30, 2023
11 checks passed
@timotheeguerin timotheeguerin deleted the fix/void-request-body branch October 30, 2023 15:21
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