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

Tighten validation around @streaming blobs #1076

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

adamthom-amzn
Copy link
Contributor

Protocols that support HTTP binding can only stream a blob if it is the payload
of the request or response. The streaming trait validator will now fail models
where a service ultimately references a streaming blob and the member is not
marked as @httpPayload.

Fixes #1075

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.

Protocols that support HTTP binding can only stream a blob if it is the payload
of the request or response. The streaming trait validator will now fail models
where a service ultimately references a streaming blob and the member is not
marked as @httpPayload.

Fixes smithy-lang#1075
@adamthom-amzn adamthom-amzn requested a review from a team February 2, 2022 01:08
@adamthom-amzn adamthom-amzn merged commit 3e2995a into smithy-lang:main Feb 2, 2022
@adamthom-amzn adamthom-amzn deleted the streaming-blobs branch February 2, 2022 18:19
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.

streaming must be paired with httpPayload in protocols that use HTTP binding traits
2 participants