calavera / aws-lambda-events

Rust event types for AWS Lambda
MIT License
128 stars 55 forks source link

Add default serialization for cookies in Custom Authorizer v2 Request #123

Closed themmes closed 2 years ago

themmes commented 2 years ago

Context

When testing my CustomAuthorizer I got the missing 'cookies' field parsing error. It seems to be a required attribute without default setting, however it is not (always) provided by API Gateway.

Changes

I hope this PR adds value, let me know if it raises any questions!

calavera commented 2 years ago

Thanks a lot for this fix! 🙌

themmes commented 2 years ago

You're very welcome, the project has been very useful so far!