Skip to content

Add event stream media type to OpenAPI#334

Merged
mtdowling merged 1 commit into0.10from
add-event-stream-openapi
Mar 31, 2020
Merged

Add event stream media type to OpenAPI#334
mtdowling merged 1 commit into0.10from
add-event-stream-openapi

Conversation

@mtdowling
Copy link
Copy Markdown
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