Closed
Description
Expected Behaviour
response.json
should be correctly formatted at https://awslabs.github.io/aws-lambda-powertools-python/latest/core/event_handler/api_gateway/#fine-grained-responses
Current Behaviour
Selecting response.json
looks like this
Code snippet
{ "body": "{\"message\":\"I\'m a teapot\"}", "headers": { "Content-Type": "application/json", "X-Custom": "X-Value" }, "isBase64Encoded": false, "statusCode": 418 }
Possible Solution
=== "response.json"
```json
{
"statusCode": 200,
"headers": {
"Content-Type": "application/json"
},
"body": "{\"message\":\"hello universe\"}",
"isBase64Encoded": false
}
```
Correctly format like PR #1117 and example deployed here https://gyft.github.io/aws-lambda-powertools-python/latest/core/event_handler/api_gateway/#fine-grained-responses
Steps to Reproduce
- Go to https://awslabs.github.io/aws-lambda-powertools-python/latest/core/event_handler/api_gateway/#fine-grained-responses
- Select
response.json
AWS Lambda Powertools for Python version
latest
AWS Lambda function runtime
3.9
Packaging format used
PyPi
Debugging logs
N/A