-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix $ref serialization errors for requestBodies and responses (#1033)
* Do not add empty consumes array if RequestBody content contains no elements * Add requestbody references as parameter references in v2 serialization * Add consumes and produces properties when we have reference request bodies and responses respectively during v2 serialization * Update src/Microsoft.OpenApi/Models/OpenApiOperation.cs Co-authored-by: Vincent Biret <vibiret@microsoft.com> * Apply suggestions from code review Co-authored-by: Vincent Biret <vibiret@microsoft.com> * Address code review comments Co-authored-by: Vincent Biret <vibiret@microsoft.com>
- Loading branch information
1 parent
680ee90
commit 76321be
Showing
4 changed files
with
108 additions
and
76 deletions.
There are no files selected for viewing
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