We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I generate OpenAPI specs, I'm expecting the paths to follow the specification on Path templating.
For legacy reasons, Powertools generates OpenAPI specs containing <> (e.g: /todos/<todo_id>) which breaks any tool that uses the standard spec.
<>
/todos/<todo_id>
from aws_lambda_powertools.event_handler import APIGatewayRestResolver app = APIGatewayRestResolver(enable_validation=True) @app.get("/todos/<todo_id>") def handle(todo_id: int): print(todo_id) return "hello" def lambda_handler(event, context): app.resolve(event, context) print(app.get_openapi_json_schema())
Keep the existing behaviour, but change the OpenAPI spec to emit the correct standard
/todos/1
<todo_id>
latest
3.7
PyPi
No response
The text was updated successfully, but these errors were encountered:
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Sorry, something went wrong.
This is now released under 2.28.0 version!
rubenfonseca
Successfully merging a pull request may close this issue.
Expected Behaviour
When I generate OpenAPI specs, I'm expecting the paths to follow the specification on Path templating.
Current Behaviour
For legacy reasons, Powertools generates OpenAPI specs containing
<>
(e.g:/todos/<todo_id>
) which breaks any tool that uses the standard spec.Code snippet
Possible Solution
Keep the existing behaviour, but change the OpenAPI spec to emit the correct standard
Steps to Reproduce
/todos/1
<todo_id>
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.7
Packaging format used
PyPi
Debugging logs
No response
The text was updated successfully, but these errors were encountered: