-
Notifications
You must be signed in to change notification settings - Fork 406
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: Cannot provide examples of values other than str in the Schema examples for SwaggerUI #5573
Comments
Thanks for opening your first issue here! We'll come back to you as soon as we can. |
Hi @tonsho! Thanks for opening this issue, to be honest, this should be Do you want to submit a PR to fix this? If so, please just add a test to validate this. Thanks |
Submitted #5575 |
|
Expected Behavior
examples
field can reflect examples with float, int, and bool values in SwaggerUI.↓
Current Behaviour
ValidationError occurs in api_gateway.py.
Code snippet
Possible Solution
Allow float, int, and bool values in the examples field.
https://github.com/aws-powertools/powertools-lambda-python/blob/v3.3.0/aws_lambda_powertools/event_handler/openapi/models.py#L204
Steps to Reproduce
Run python.
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.12
Packaging format used
PyPi
Debugging logs
The text was updated successfully, but these errors were encountered: