Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(aws-lambda): add missing version field into aws gateway compatibl…
…e payload (#13018) This PR adds a missing version field into the aws-lambda plugin's awsgateway_compatible payload. The awsgateway_compatible field provides a way to send a wrapped request body which is compatible with the format of AWS API gateway's proxy integration. The format of the payload is described here: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html#http-api-develop-integrations-lambda.proxy-format Some framework/projects that used to build Lambda function may check the version field sent by API gateway, so that they can apply different extracting logic according to different versions of payload. For example the logic in mangum looks like: https://github.com/jordaneremieff/mangum/blob/6086c268f32571c01f18e20875430db14a0570bc/mangum/handlers/api_gateway.py#L157-L176 The PR adds the missing version field for better compatibility. FTI-5949 (cherry picked from commit 204dd8d)
- Loading branch information