fastify / aws-lambda-fastify

Insipired by aws-serverless-express to work with Fastify with inject functionality.
MIT License
498 stars 32 forks source link

Allow users to opt out of literal comma "," query parameters parsing #215

Closed mouhannad-sh closed 3 months ago

mouhannad-sh commented 3 months ago

Fixes #202 by adding a new optional option parseCommaSeparatedQueryParams to opt-out from parsing multi-value query params with api gateway v2.0 format.

Additionally fixes a bug where the lambda incoming event argument was manipulated during the parsing. This may cause confusion for users attempting to log the original lambda argument when using request.awsLambda.event.queryStringParameters

Checklist

adrai commented 3 months ago

Can you extend the readme accordingly?

mouhannad-sh commented 3 months ago

Updated the readme, thanks !

adrai commented 3 months ago

included in v4.1.0 thank you for your contribution