You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, if I add @httpPayload above the line output: StreamingBlob, then it builds fine.
I don't see anything in the Smithy spec that says streaming blobs must also be bound with @httpPayload. I would have assumed that adding @httpPayload would be superfluous; I had always thought that blob @streaming would imply that the data is automatically streamed over the HTTP body. However, I can't reconcile that idea with the example that is featured in the Smithy docs:
Here, it would seem like @streaming should be strictly interpreted as simply "the data could be very large and thus should not be stored in memory or that the size is unknown at the start of the request" as per the spec, without ascribing any special semantics as to how the data is sent over HTTP, since the body also contains a streamId string.
This last example from the Smithy docs also fails to compile in smithy-rs, but is accepted by Smithy CLI.
The text was updated successfully, but these errors were encountered:
I don't understand why the following Smithy model:
fails to build.
However, if I add
@httpPayload
above the lineoutput: StreamingBlob
, then it builds fine.I don't see anything in the Smithy spec that says streaming blobs must also be bound with
@httpPayload
. I would have assumed that adding@httpPayload
would be superfluous; I had always thought that blob@streaming
would imply that the data is automatically streamed over the HTTP body. However, I can't reconcile that idea with the example that is featured in the Smithy docs:Here, it would seem like
@streaming
should be strictly interpreted as simply "the data could be very large and thus should not be stored in memory or that the size is unknown at the start of the request" as per the spec, without ascribing any special semantics as to how the data is sent over HTTP, since the body also contains astreamId
string.This last example from the Smithy docs also fails to compile in smithy-rs, but is accepted by Smithy CLI.
The text was updated successfully, but these errors were encountered: