ahrefs / atd

Static types for JSON APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsonschema CLI is deprecated, use check-jsonschema instead

tysg opened this issue · comments

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)