Metadata-Version: 2.5
Name: check-jsonschema
Version: 0.39.0
Summary: A jsonschema CLI and pre-commit hook
Author-email: Stephen Rosen <sirosen0@gmail.com>
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
License-File: LICENSE
Requires-Dist: tomli>=2.0;python_version<"3.11"
Requires-Dist: ruamel.yaml>=0.18.10,<0.20.0
Requires-Dist: jsonschema>=4.18.0,<5.0
Requires-Dist: regress>=2024.11.1
Requires-Dist: requests<3.0
Requires-Dist: click>=8.5,<9
Project-URL: Homepage, https://github.com/python-jsonschema/check-jsonschema
Import-Name: check_jsonschema

[![pypi version](https://img.shields.io/pypi/v/check-jsonschema.svg)][pypi]
[![supported pythons](https://img.shields.io/pypi/pyversions/check-jsonschema.svg)][pypi]
[![build](https://github.com/python-jsonschema/check-jsonschema/actions/workflows/build.yaml/badge.svg)](https://github.com/python-jsonschema/check-jsonschema/actions/workflows/build.yaml)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/python-jsonschema/check-jsonschema/main.svg)](https://results.pre-commit.ci/latest/github/python-jsonschema/check-jsonschema/main)
[![readthedocs documentation](https://readthedocs.org/projects/check-jsonschema/badge/?version=stable&style=flat)][docs]

[![check-jsonschema logo](https://github.com/python-jsonschema/check-jsonschema/raw/main/docs/_static/logo.png)][docs]

# 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.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

- [Documentation][docs]
- [Changelog][changelog]
- [Contributing][contrib]
- [Source][repo]
- [PyPI][pypi]

[docs]: https://check-jsonschema.readthedocs.io/
[changelog]: https://check-jsonschema.readthedocs.io/en/stable/changelog.html
[contrib]: https://github.com/python-jsonschema/check-jsonschema/blob/main/.github/CONTRIBUTING.md
[repo]: https://github.com/python-jsonschema/check-jsonschema/
[pypi]: https://pypi.org/project/check-jsonschema/

