-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add event stream media type to OpenAPI
The HttpBindingIndex now knows about event streams and can return an eventstream specific media type when an operation's input or output uses one. This is now used as part of the OpenAPI converter so that the generated OpenAPI description uses an appropriate media type. AbstractRestProtocol was updated to add a method for returning the media type of an EventStreamInfo object, with a default implementation that returns application/vnd.amazon.eventstream. Since event streams are now supported, the UnsupportedTraits mapper was updated to allow event streams and streams. However, endpoint and hostLabel traits are not supported, so they were added into the mapper.
- Loading branch information
Showing
10 changed files
with
246 additions
and
33 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
Oops, something went wrong.