1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
Metadata-Version: 2.4
Name: check-jsonschema
Version: 0.34.1
Summary: A jsonschema CLI and pre-commit hook
Author-email: Stephen Rosen <sirosen0@gmail.com>
Project-URL: Homepage, https://github.com/python-jsonschema/check-jsonschema
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ruamel.yaml<0.19.0,>=0.18.10
Requires-Dist: jsonschema<5.0,>=4.18.0
Requires-Dist: regress>=2024.11.1
Requires-Dist: requests<3.0
Requires-Dist: click<9,>=8
Dynamic: license-file
[](https://pypi.org/project/check-jsonschema/)
[](https://pypi.org/project/check-jsonschema/)
[](https://github.com/python-jsonschema/check-jsonschema/actions/workflows/build.yaml)
[](https://results.pre-commit.ci/latest/github/python-jsonschema/check-jsonschema/main)
[](https://check-jsonschema.readthedocs.io/en/stable)
# check-jsonschema
A JSON Schema CLI and [pre-commit](https://pre-commit.com/) hook built on [jsonschema](https://github.com/python-jsonschema/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.
```yaml
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.34.1
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/
|