pypi version supported pythons build pre-commit.ci status readthedocs documentation
A JSON Schema CLI and pre-commit hook built on jsonschema. The schema may be specified as a local or remote (HTTP or HTTPS) file.
Remote files are automatically downloaded and cached if possible.
check-jsonschema can be installed and run as a CLI tool, or via pre-commit.
The following configuration uses check-jsonschema to validate Github Workflow
files.
- repo: https://github.com/python-jsonschema/check-jsonschema rev: 0.37.3 hooks: - id: check-github-workflows args: ["--verbose"]
Install with pipx or brew:
pipx install check-jsonschema
or
brew install check-jsonschema
Then run, as in
check-jsonschema --schemafile schema.json instance.json
Full documentation can be found at https://check-jsonschema.readthedocs.io/