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.30.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
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
File details
Details for the file check_jsonschema-0.30.0.tar.gz
.
File metadata
- Download URL: check_jsonschema-0.30.0.tar.gz
- Upload date:
- Size: 268.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c912ef9cf204c17d2e9d832b9088040f1c0c3f178ebda9805a56e5f35b29f5f2 |
|
MD5 | 2ca9d2e2add2eec60d4d127d7977c876 |
|
BLAKE2b-256 | 845207a76a51fba27592c2b24ebc0426e1bb84af77220c89deed2e03fd67f40c |
Provenance
The following attestation bundles were made for check_jsonschema-0.30.0.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.30.0.tar.gz
- Subject digest:
c912ef9cf204c17d2e9d832b9088040f1c0c3f178ebda9805a56e5f35b29f5f2
- Sigstore transparency entry: 152453492
- Sigstore integration time:
- Permalink:
python-jsonschema/check-jsonschema@9932a7df36a32ef5e79dfd5df26ad89ca15bfa61
- Branch / Tag:
refs/tags/0.30.0
- 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@9932a7df36a32ef5e79dfd5df26ad89ca15bfa61
- Trigger Event:
release
- Statement type:
File details
Details for the file check_jsonschema-0.30.0-py3-none-any.whl
.
File metadata
- Download URL: check_jsonschema-0.30.0-py3-none-any.whl
- Upload date:
- Size: 254.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7fb2de2017ab81a85b08c7332d6f074b0565d41d068de25a6e42a8a6a0b723d |
|
MD5 | 4369af0b2b3f12d396d643eb2c20ccfd |
|
BLAKE2b-256 | cce9105b76db771ab17a4069bce2c9aced9993f83ed1f11e1bb875f0638e5676 |
Provenance
The following attestation bundles were made for check_jsonschema-0.30.0-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.30.0-py3-none-any.whl
- Subject digest:
c7fb2de2017ab81a85b08c7332d6f074b0565d41d068de25a6e42a8a6a0b723d
- Sigstore transparency entry: 152453494
- Sigstore integration time:
- Permalink:
python-jsonschema/check-jsonschema@9932a7df36a32ef5e79dfd5df26ad89ca15bfa61
- Branch / Tag:
refs/tags/0.30.0
- 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@9932a7df36a32ef5e79dfd5df26ad89ca15bfa61
- Trigger Event:
release
- Statement type: