Update DynamoDB.Decoder to handle binary strings
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
Thank you @gregggreg Can you add a unit test to cover this change ?
Hello @gregggreg DO you think you can find a bit of time to add a unit test for this PR ?
Closing in favor of https://github.com/awslabs/swift-aws-lambda-events/pull/103