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 document validation and fix their HTTP binding #474

Merged
merged 1 commit into from
Jun 24, 2020

Conversation

mtdowling
Copy link
Member

HTTP binding traits used invalid selectors that aren't actually
supported, particularly around document types. Document types today can
only be bound in the payload of an HTTP request. This change also add a
flag to protocol trait definitions that defines if the protocol supports
inline document types (along with built-in validation to detect when a
protcool says it doesn't support document types but a service uses
document types with the protocol). HTTP bindings previously stated that
only "application/json" media types found in HTTP headers are base64
encoded, however any string with a mediaType needs to be base64 encoded.

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.

Copy link
Contributor

@JordonPhillips JordonPhillips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing beyond what kevin's already pointed out

@mtdowling mtdowling force-pushed the fix-http-bindings branch from 49961e5 to f86f1fd Compare June 24, 2020 20:33
@mtdowling mtdowling requested a review from kstich June 24, 2020 20:33
HTTP binding traits used invalid selectors that aren't actually
supported, particularly around document types. Document types today can
only be bound in the payload of an HTTP request. This change also add a
flag to protocol trait definitions that defines if the protocol supports
inline document types (along with built-in validation to detect when a
protcool says it doesn't support document types but a service uses
document types with the protocol). HTTP bindings previously stated that
only "application/json" media types found in HTTP headers are base64
encoded, however any string with a mediaType needs to be base64 encoded.
@mtdowling mtdowling force-pushed the fix-http-bindings branch from f86f1fd to a28f233 Compare June 24, 2020 20:39
@mtdowling mtdowling requested a review from kstich June 24, 2020 20:39
@mtdowling mtdowling merged commit 37d8ef3 into master Jun 24, 2020
@mtdowling mtdowling deleted the fix-http-bindings branch June 25, 2020 02:10
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.

3 participants