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

jsonschema CLI is deprecated, use check-jsonschema instead #338

Open
tysg opened this issue Apr 20, 2023 · 0 comments
Open

jsonschema CLI is deprecated, use check-jsonschema instead #338

tysg opened this issue Apr 20, 2023 · 0 comments
Labels
maintenance Maintenance task such as upgrading an aging component

Comments

@tysg
Copy link

tysg commented Apr 20, 2023

When running make test-common, I noticed atdcat's test printed the warning below:

/opt/homebrew/lib/python3.11/site-packages/jsonschema/__main__.py:1: DeprecationWarning: The jsonschema CLI is deprecated and will be removed in a future version. Please use check-jsonschema instead, which can be installed from https://pypi.org/project/check-jsonschema/
  from jsonschema.cli import main

This means that the test below might not work in the future, and we might want to consider switching to check-jsonschema instead.

(run python3 -m jsonschema schema.json -i data.json)

@mjambon mjambon added the maintenance Maintenance task such as upgrading an aging component label Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance task such as upgrading an aging component
Projects
None yet
Development

No branches or pull requests

2 participants