Metadata-Version: 2.1
Name: check-jsonschema
Version: 0.23.3
Summary: A jsonschema CLI and pre-commit hook
Home-page: https://github.com/python-jsonschema/check-jsonschema
Author: Stephen Rosen
Author-email: sirosen@uchicago.edu
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ruamel.yaml (==0.17.32)
Requires-Dist: jsonschema (<5.0,>=4.5.1)
Requires-Dist: requests (<3.0)
Requires-Dist: click (<9,>=8)
Requires-Dist: importlib-resources (>=1.4.0) ; python_version < "3.9"
Provides-Extra: dev
Requires-Dist: pytest (<8) ; extra == 'dev'
Requires-Dist: coverage (<8) ; extra == 'dev'
Requires-Dist: pytest-xdist (<4) ; extra == 'dev'
Requires-Dist: responses (==0.23.1) ; extra == 'dev'
Provides-Extra: docs
Requires-Dist: sphinx (<8) ; extra == 'docs'
Requires-Dist: sphinx-issues (<4) ; extra == 'docs'
Requires-Dist: furo (==2023.5.20) ; extra == 'docs'

[![pypi version](https://img.shields.io/pypi/v/check-jsonschema.svg)](https://pypi.org/project/check-jsonschema/)
[![supported pythons](https://img.shields.io/pypi/pyversions/check-jsonschema.svg)](https://pypi.org/project/check-jsonschema/)
[![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)](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.23.3
  hooks:
    - id: check-github-workflows
```

## Documentation

Full documentation can be found at https://check-jsonschema.readthedocs.io/
