aws / aws-lambda-go

Libraries, samples and tools to help Go developers develop AWS Lambda functions.
Apache License 2.0
3.58k stars 548 forks source link

Plumb JSON Decoder options #515

Closed bmoffatt closed 7 months ago

bmoffatt commented 10 months ago

Issue #, if available:

https://github.com/aws/aws-lambda-go/issues/514

Description of changes:

Adds options lambda.WithUseNumber and lambda.WithDisallowUnknownFields

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

codecov-commenter commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (0ad0619) 72.63% compared to head (35b9dbb) 72.90%.

:exclamation: Current head 35b9dbb differs from pull request most recent head 83a2af9. Consider uploading reports for the commit 83a2af9 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #515 +/- ## ========================================== + Coverage 72.63% 72.90% +0.26% ========================================== Files 26 26 Lines 1407 1421 +14 ========================================== + Hits 1022 1036 +14 Misses 314 314 Partials 71 71 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.