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

Add event stream media type to OpenAPI #334

Merged
merged 1 commit into from
Mar 31, 2020
Merged

Conversation

mtdowling
Copy link
Member

@mtdowling mtdowling commented Mar 29, 2020

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.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

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.
@mtdowling mtdowling merged commit edeb6c5 into 0.10 Mar 31, 2020
@mtdowling mtdowling deleted the add-event-stream-openapi branch April 8, 2020 23:50
@kstich kstich mentioned this pull request Apr 23, 2020
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