-
Notifications
You must be signed in to change notification settings - Fork 420
Bug: get_openapi_json_schema() default openapi version 3.0.0 #3519
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
Awesome catch! Fixing it now. |
|
Your effort to ensure consistency across our documentation regarding the default OpenAPI version is much appreciated. It's great to see the clarification that version 3.0.0 is supported by default. Your contributions help make our documentation clearer for everyone. Thanks again for your diligent work! |
This is now released under 2.30.2 version! |
Expected Behaviour
api_gateway.py docstring on line 1500 states:
"""
openapi_version: str, default = "3.1.0"
The version of the OpenAPI Specification (which the document uses).
"""
When creating a openapi json schema with no
openapi_version
specified it is expected that the version defaults to3.1.0
.Current Behaviour
When creating an openpi json schema with no openapi version specified (openapi_version) it defaults to
3.0.0
.Code snippet
Possible Solution
Either update the docstring or update the constant:
DEFAULT_OPENAPI_VERSION = "3.0.0"
Steps to Reproduce
Create an openapi json schema with no
openapi_version
specified and view the output.Powertools for AWS Lambda (Python) version
2.30.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: