Skip to content

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Sep 2, 2025

internal P291987404

Fixes event stream serialization when the @eventStreamPayload member is a string.

This case is not present in current AWS models.

@kuhe kuhe requested a review from a team as a code owner September 2, 2025 19:19
@@ -387,7 +387,7 @@ private void writeEventBody(
writer.write("body = input.$L;", payloadMemberName);
} else if (payloadShape instanceof StringShape) {
writer.write("body = context.utf8Decoder(input.$L);", payloadMemberName);
} else if (payloadShape instanceof BlobShape || payloadShape instanceof StringShape) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was a copy-paste error from #572

@kuhe kuhe merged commit 33dc34a into smithy-lang:main Sep 2, 2025
11 checks passed
@kuhe kuhe deleted the fix/event-stream branch September 2, 2025 20:20
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