HTTP API payload format for lambda proxy integration

Hey everyone,

According to AWS’ developer guide (Working with AWS Lambda proxy integrations for HTTP APIs - Amazon API Gateway) there are two different payload formats for lambda proxy integrations.

According to Serverless’ documentation the 2.0 payload format is the default format.

But when I deploy lambda functions with the Serverless framework and according to Serverless’ default payload (https://www.serverless.com/framework/docs/providers/aws/events/apigateway#example-lambda-proxy-event-default) is can see that payload 1.0 is used.

How can I enable the 2.0 payload format verson?

Cheers
Alex