Skip to content
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

Fix a deprecation warning from jsonschema 3.x #946

Merged
merged 1 commit into from
Jun 3, 2019
Merged

Fix a deprecation warning from jsonschema 3.x #946

merged 1 commit into from
Jun 3, 2019

Conversation

yan12125
Copy link
Contributor

@yan12125 yan12125 commented Jun 3, 2019

Issue #, if available:

Description of changes:

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)

From the warning message, I think specifying the latest draft of jsonschema keeps the current behavior in samtranslator. Currently the latest draft is draft-07.

Description of how you validated changes:

Run the test suite.

Checklist:

  • Write/update tests
  • make pr passes - does not pass. I think the issue is outside of this PR.
  • Update documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

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)
@codecov-io
Copy link

Codecov Report

Merging #946 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #946   +/-   ##
========================================
  Coverage    94.73%   94.73%           
========================================
  Files           69       69           
  Lines         3018     3018           
  Branches       562      562           
========================================
  Hits          2859     2859           
  Misses          84       84           
  Partials        75       75

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e3a274...f5461ff. Read the comment docs.

@brettstack brettstack merged commit 12899b5 into aws:develop Jun 3, 2019
@brettstack
Copy link
Contributor

Thanks @yan12125

@yan12125 yan12125 deleted the fix-jsonschema3-warnings branch June 4, 2019 00:01
praneetap pushed a commit to praneetap/serverless-application-model that referenced this pull request Jun 5, 2019
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)
brettstack pushed a commit that referenced this pull request Jun 12, 2019
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants