Skip to content

fix nested unions in json/cbor and explicit null union members#673

Merged
lucix-aws merged 1 commit into
mainfrom
fix-nestedunion
Jun 4, 2026
Merged

fix nested unions in json/cbor and explicit null union members#673
lucix-aws merged 1 commit into
mainfrom
fix-nestedunion

Conversation

@lucix-aws

Copy link
Copy Markdown
Contributor

closes #671
supercedes #672

two issues fixed here:

  • if a union member targets a union, json and cbor would blow up on deserialize
  • if the first union member was explicitly null then the smithy.ReadUnion helper would choke

@lucix-aws

Copy link
Copy Markdown
Contributor Author

relates aws/aws-sdk-go-v2#3432

@lucix-aws lucix-aws merged commit ec26415 into main Jun 4, 2026
15 checks passed
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.

json ShapeDeserializer panics (slice bounds out of range) when a union member's value is itself a union

2 participants