You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was not able to change the output location of the examples. In this PR, it will only enable the definition of examples in the Schema Object. https://swagger.io/specification/#schema-object
In FastAPI, the example definitions for JSON Schema and OpenAPI are handled separately.
I think it would be better to follow this approach in Powertools as well and prepare openapi_examples separately.
Expected Behaviour
Original report: https://github.com/aws-powertools/powertools-lambda-python/pull/5575/files#r1846670069
The
examples
should be underparameters
, not underschema
.https://swagger.io/specification/#parameter-object
I was not able to change the output location of the
examples
. In this PR, it will only enable the definition ofexamples
in the Schema Object.https://swagger.io/specification/#schema-object
wrong
expected
Current Behaviour
This is being serialized under schema and not showing in SwaggerUI.
Code snippet
Possible Solution
No response
Steps to Reproduce
Run the code above
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.13
Packaging format used
Lambda Layers, PyPi
Debugging logs
The text was updated successfully, but these errors were encountered: