Skip to content

Conversation

@lucix-aws
Copy link
Contributor

@lucix-aws lucix-aws commented Aug 26, 2025

We've gotten correspondence about this a handful of times over the last quarter and it appears to be a behavioral requirement for some downstream AWS services in caching scenarios, so I'm just doing it. It also makes unit testing easier.

This DOES NOT cover general map serialization, that will have to be addressed downstream.

@lucix-aws lucix-aws requested review from a team as code owners August 26, 2025 20:38
@Madrigal
Copy link
Contributor

Discussed offline, and to double clarify, this impacts only the encoding of document types, not of general serialization of maps, so for example this wouldn't solve aws/aws-sdk-go-v2#3131

Copy link
Contributor

@Madrigal Madrigal left a comment

Choose a reason for hiding this comment

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

This will have a small performance hit for now having to store the keys on a separate slice and sorting, but since we have to do it anyway there's not much we can improve upon

@lucix-aws lucix-aws merged commit d85d290 into main Aug 26, 2025
15 checks passed
@lucix-aws lucix-aws deleted the documentjsonmapkey branch August 26, 2025 21:24
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