Description of changes:
In a previous update to the library when we switched to using the registered serializer for deserializing message body to the FromBody type the code incorrectly converted to a byte array using the ASCII encoding. This PR changes the encoding to UTF8.
The changes is all in the APIGatewaySetupParameters.tt file. The rest of the PR is updating the version bump to 1.5.2 and updating the unit test snapshots.
Testing
Updated the generated snapshots used in unit tests to confirm we are using UTF8. I also rerun the original issues scenario in Lambda with a built version of the NuGet package and confirmed the correct encoding of the Unicode characters.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #, if available: https://github.com/aws/aws-lambda-dotnet/issues/1824
Description of changes: In a previous update to the library when we switched to using the registered serializer for deserializing message body to the
FromBody
type the code incorrectly converted to a byte array using theASCII
encoding. This PR changes the encoding toUTF8
.The changes is all in the
APIGatewaySetupParameters.tt
file. The rest of the PR is updating the version bump to1.5.2
and updating the unit test snapshots.Testing Updated the generated snapshots used in unit tests to confirm we are using UTF8. I also rerun the original issues scenario in Lambda with a built version of the NuGet package and confirmed the correct encoding of the Unicode characters.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.