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.36.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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file check_jsonschema-0.36.2.tar.gz.
File metadata
- Download URL: check_jsonschema-0.36.2.tar.gz
- Upload date:
- Size: 342.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc5de8b0270eb9c5b82adf1f977cb8d05ff2578eb7e2317a44620c1639f1e55b
|
|
| MD5 |
cdc83fdcac0f029ffb18c2e550923eb1
|
|
| BLAKE2b-256 |
03637b981a8c3ef7f153259fa8934abe0f35ea210ca40941dfd5c2b9ae521e8f
|
Provenance
The following attestation bundles were made for check_jsonschema-0.36.2.tar.gz:
Publisher:
publish_to_pypi.yaml on python-jsonschema/check-jsonschema
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
check_jsonschema-0.36.2.tar.gz -
Subject digest:
bc5de8b0270eb9c5b82adf1f977cb8d05ff2578eb7e2317a44620c1639f1e55b - Sigstore transparency entry: 954377926
- Sigstore integration time:
-
Permalink:
python-jsonschema/check-jsonschema@f761d025eb06bcd6a45bf152ba3593c9b8ad9a9b -
Branch / Tag:
refs/tags/0.36.2 - Owner: https://github.com/python-jsonschema
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yaml@f761d025eb06bcd6a45bf152ba3593c9b8ad9a9b -
Trigger Event:
release
-
Statement type:
File details
Details for the file check_jsonschema-0.36.2-py3-none-any.whl.
File metadata
- Download URL: check_jsonschema-0.36.2-py3-none-any.whl
- Upload date:
- Size: 328.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51a2e21a03771004312f48b034da5bc4a988e3646f5705904732143653e652c8
|
|
| MD5 |
d539f9f58c8fd4db6761a1d74d256766
|
|
| BLAKE2b-256 |
6bc15803c627e9340095fb7fbc2f7ad0668c35a5708da520ca1da5a8b5ca1e63
|
Provenance
The following attestation bundles were made for check_jsonschema-0.36.2-py3-none-any.whl:
Publisher:
publish_to_pypi.yaml on python-jsonschema/check-jsonschema
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
check_jsonschema-0.36.2-py3-none-any.whl -
Subject digest:
51a2e21a03771004312f48b034da5bc4a988e3646f5705904732143653e652c8 - Sigstore transparency entry: 954377927
- Sigstore integration time:
-
Permalink:
python-jsonschema/check-jsonschema@f761d025eb06bcd6a45bf152ba3593c9b8ad9a9b -
Branch / Tag:
refs/tags/0.36.2 - Owner: https://github.com/python-jsonschema
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yaml@f761d025eb06bcd6a45bf152ba3593c9b8ad9a9b -
Trigger Event:
release
-
Statement type: