check-jsonschema
v0.39.0A jsonschema CLI and pre-commit hook
474 KB Python 3.11+ py3-none-anyApache Software License6 deps
$ uv add check-jsonschemacheck-jsonschema
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.
Usage
check-jsonschema can be installed and run as a CLI tool, or via pre-commit.
Example pre-commit config
The following configuration uses check-jsonschema to validate Github Workflow
files.
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.39.0
hooks:
- id: check-github-workflows
args: ["--verbose"]
Installing and Running as a CLI Tool
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
Project Information
Details
- Version
- 0.39.0
- License
- Apache Software License
- Python
- >=3.11
- Maintainer
- Stephen Rosen <[email protected]>
Links
Release Cadence
12
releases in the past year
avg 21 days between releases
Maintainers
- Stephen Rosen · [email protected]
