Skip to content

Change S3Key json decoding to roundtrip#98

Merged
vlovgr merged 3 commits intomainfrom
s3-key-json-roundtrip
Apr 1, 2026
Merged

Change S3Key json decoding to roundtrip#98
vlovgr merged 3 commits intomainfrom
s3-key-json-roundtrip

Conversation

@vlovgr
Copy link
Copy Markdown
Member

@vlovgr vlovgr commented Apr 1, 2026

Since the current Encoder[S3Key] includes encoding and the current Decoder[S3Key] encodes again, we end up with incorrect double encoding. This pull request solves the issue by changing the Decoder[S3Key] to not apply encoding, essentially assuming the decoded value is already encoded properly. Depending on context, this may or may not be the right thing to do, but users can override the behaviour if desired with a custom Decoder[S3Key] instance.

@vlovgr vlovgr merged commit bcd9027 into main Apr 1, 2026
13 checks passed
@vlovgr vlovgr deleted the s3-key-json-roundtrip branch April 1, 2026 14:33
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.

1 participant