Skip to content

null values in sparse map serialization and deserialization#3709

Open
AndrewAsseily wants to merge 2 commits into
developfrom
sparse-map-null-handling
Open

null values in sparse map serialization and deserialization#3709
AndrewAsseily wants to merge 2 commits into
developfrom
sparse-map-null-handling

Conversation

@AndrewAsseily

@AndrewAsseily AndrewAsseily commented May 21, 2026

Copy link
Copy Markdown
Contributor

Backport of aws/aws-cli#10177.

In this PR:

  • JSON and CBOR serializers now handle None values in sparse map and list inputs, same pattern that #3618 added for list parsing
  • CBOR map parser was silently dropping null values (0xf6) instead of preserving them as None in the resulting dict. This aligns CBOR map parsing with how _parse_array already handles nulls, and with the new JSON parser behavior
  • Updated protocol tests

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@AndrewAsseily AndrewAsseily requested review from a team and removed request for a team May 27, 2026 19:14
@aemous aemous self-requested a review May 28, 2026 15:03
@aemous aemous self-assigned this May 28, 2026
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