A jsonschema CLI and pre-commit hook
Project description
check-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.27.2
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
Documentation
Full documentation can be found at https://check-jsonschema.readthedocs.io/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
check-jsonschema-0.27.2.tar.gz
(235.6 kB
view hashes)
Built Distribution
Close
Hashes for check_jsonschema-0.27.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 748520003dcd948bb258ff552ef04d0c2600fbb657f36eea3732c213458b1a78 |
|
MD5 | 384b1c3b38ef95e306780f836c3b8681 |
|
BLAKE2b-256 | 1259124019e46fa3843fc8e35cf4dc3c6b488d9a023b161706d0b07d70f58f33 |