-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat: openapi version 3 support non-auth changes #932
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
Conversation
merge from awslabs/develop
chore: update test_translator.py (aws#933)
Codecov Report
@@ Coverage Diff @@
## develop #932 +/- ##
===========================================
+ Coverage 94.73% 94.86% +0.12%
===========================================
Files 69 69
Lines 3018 3055 +37
Branches 562 573 +11
===========================================
+ Hits 2859 2898 +39
Misses 84 84
+ Partials 75 73 -2
Continue to review full report at Codecov.
|
if self.open_api_version: | ||
if re.match(SwaggerEditor.get_openapi_versions_supported_regex(), self.open_api_version) is None: | ||
raise InvalidResourceException( | ||
self.logical_id, "The OpenApiVersion value must be of the format 3.0.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: 3.0.0
doesn't seem like a format, but I think this is still understandable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Have you deployed any of these OpenApi 3.0 templates to verify that they work in CFN?
|
merge develop into oas3
* chore: update test_translator.py (#933) * fix: partitionalize arn in StepFunctionsExecutionPolicy (#941) * fix: fix a deprecation warning from jsonschema 3.x (#946) For example, in https://travis-ci.org/awslabs/serverless-application-model/jobs/538917819: /home/travis/build/awslabs/serverless-application-model/.tox/py36/lib/python3.6/site-packages/jsonschema/validators.py:893: DeprecationWarning: The metaschema specified by $schema was not found. Using the latest draft to validate, but this will raise an error in the future. cls = validator_for(schema) * feat: openapi version 3 support non-auth changes (#932) * feat: openapi support for auth usecases (#949) * chore: Fixing security alerts on the repo * addressed cr comments
Issue #, if available:
#191 #627
Description of changes:
Adding OpenApi 3.0 support for non-auth use cases. This adds a global/api flag called OpenApiVersion, which when specified -
Description of how you validated changes:
Added tests, and end to end tests.
Checklist:
make pr
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.