-
Notifications
You must be signed in to change notification settings - Fork 408
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
Bug: APIGatewayRestResolver - openAPI metadata responses / tags on @router fails with unhashable type: dict #3506
Comments
Thanks for opening your first issue here! We'll come back to you as soon as we can. |
Hello @MCR2019! Thanks for reporting this bug! I was able to reproduce the error and we are working to fix it. We apologize for this bug. OpenAPI + Swagger are new utilities and we try our best to create tests and keep our code coverage high. Unfortunately, some things go through and we can't simulate them until someone reports it 😞 Thank you. |
Working at this now! |
|
This is now released under 2.30.1 version! |
@MCR2019 thank you again for reporting this, we've just released 2.30.1 that should fix the problem you found! |
@rubenfonseca - Thank you for fixing so quickly! |
Expected Behaviour
When adding
responses
ortags
metadata to a router this should behave in the same was as when it is added to the app.Current Behaviour
When the routers are added to the app the metadata is used as a key. As the metadata fields for
responses
andtags
are Dict and List then this produces the following error:Code snippet
Possible Solution
No response
Steps to Reproduce
responses
ortags
metadata.Powertools for AWS Lambda (Python) version
2.29.1
AWS Lambda function runtime
3.10
Packaging format used
PyPi
Debugging logs
No response
The text was updated successfully, but these errors were encountered: