-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HTTP] Don't allow multiple properties in a response to be annotated …
…with `@statusCode` (#2454) Fix #2347. The fix was surprisingly less involved than I expected. **BREAKING CHANGE** since this will now fail instead of outputting nonsense.
- Loading branch information
1 parent
b9452d0
commit a096823
Showing
6 changed files
with
79 additions
and
31 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
common/changes/@typespec/http/openapi3-DuplicateRefs_2023-09-27-19-57.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/http", | ||
"comment": "Emit error when multiple properties on a response model have the `@statusCode` decorator.", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@typespec/http" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/@typespec/openapi3/openapi3-DuplicateRefs_2023-09-27-19-57.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": "", | ||
"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
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