-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OpenAPI3] Fix: Using
@body _: void
in operation parameters and tre…
…at it as no body. (#2609) ``` op test(@Body _: void): string; ``` Will not crash and be treated as no request body
- Loading branch information
1 parent
533c974
commit 8b22fae
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
common/changes/@typespec/openapi3/fix-void-request-body_2023-10-27-17-39.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@typespec/openapi3", | ||
"comment": "Fix: Stops emitting an error when using `@body _: void` in operation parameters and treat it as no body.", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@typespec/openapi3" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters