Non-required
streaming blob shape members are codegenned without Option
#1302
Labels
required
streaming blob shape members are codegenned without Option
#1302
This model:
Makes both client and server yield in
input.rs
:Note that the member shape is not marked
@required
, yet the fieldblob
is not optional.The issue lies in
StreamingTraitSymbolProvider
, that directly returns aByteStream
if it detects the shape is streaming, without taking into account that the base symbol provider(s) might return anOption<Blob>
instead of aBlob
.https://github.com/awslabs/smithy-rs/blob/e78d40f0d52651c16efb671c749d852d61b10565/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/StreamingTraitSymbolProvider.kt#L42-L47
I'm currently trying to make a fix along these lines (note that it's only looking in
references
one level deep):The text was updated successfully, but these errors were encountered: