Skip to content

Conversation

gregggreg
Copy link

DynamoDBEvent.Decoder isn't currently handling the case where .binary attributes are base64encoded strings and throws an error

Motivation:

If you try to use DynamoDBEvent.Decoder on binary values, it throws an error saying it is expecting the value to be a string

Modifications:

Decoding string values now handles the case where they are .binary as well

Result:

If you have a DynamoDB record with binary values, you will be able to use DynamoDBEvent.Decoder to properly decode it without an error being thrown

@sebsto
Copy link
Contributor

sebsto commented Nov 7, 2024

Thank you @gregggreg
Can you add a unit test to cover this change ?

Copy link
Contributor

@sebsto sebsto left a comment

Choose a reason for hiding this comment

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

Looks good but I would like to add a unit test to cover this change

@sebsto sebsto added the 🆕 semver/minor Adds new public API. label Nov 26, 2024
@sebsto
Copy link
Contributor

sebsto commented Jun 27, 2025

Hello @gregggreg
DO you think you can find a bit of time to add a unit test for this PR ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants