-
Notifications
You must be signed in to change notification settings - Fork 421
Bug: Upgrade to 3.7.0 breaks List response validation in APIGatewayRestResolver #6216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @alnemo! Thank you so much for raising this issue! This PR introduced this unexpected regression. I see we don't have a test for it and that's why we didn't catch it before the merge. We have a release scheduled for this Friday 07/03/2025 and I will revert this PR or fix this bug in this situation. Can you wait until then and adopt 3.8.0? I'm really sorry about that. |
Closed via #6234 |
|
This is now released under 3.9.0 version! |
Expected Behaviour
3.6.0 and 3.7.0 behave the same
Current Behaviour
With powertools update to 3.7.0 same code returns 422 validation error, while it works on 3.6.0
Code snippet
Possible Solution
No response
Steps to Reproduce
Run the example code while 3.6.0 or below is installed
pip install --upgrade aws-lambda-powertools==3.6.0
Response is
{
"body": "[{"status": "initial", "count": 1}, {"status": "done", "count": 1}]",
"isBase64Encoded": false,
"multiValueHeaders": {},
"statusCode": 200
}
Upgrade to 3.7.0
pip install --upgrade aws-lambda-powertools==3.7.0
Response is now
{
"body": "{"statusCode":422,"detail":[{"loc":["response"],"type":"list_type"}]}",
"isBase64Encoded": false,
"multiValueHeaders": {
"Content-Type": [
"application/json"
]
},
"statusCode": 422
}
Powertools for AWS Lambda (Python) version
3.7.0
AWS Lambda function runtime
3.12
Packaging format used
PyPi
Debugging logs
The text was updated successfully, but these errors were encountered: