---
title: "check-jsonschema | pypx"
description: "A jsonschema CLI and pre-commit hook"
canonical_url: "https://pypx.app/packages/check-jsonschema"
meta:
  "og:description": "A jsonschema CLI and pre-commit hook"
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_check-jsonschema%2Cversion_0.39.0%2Csummary_A%2Bjsonschema%2BCLI%2Band%2Bpre-commit%2Bhook%2Clicense_Apache%2BSoftware%2BLicense%2Cp_Ii9wYWNrYWdlcy9jaGVjay1qc29uc2NoZW1hIg%2Cs_aX4vC0polSPaeUpI.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "check-jsonschema 0.39.0"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_check-jsonschema%2Cversion_0.39.0%2Csummary_A%2Bjsonschema%2BCLI%2Band%2Bpre-commit%2Bhook%2Clicense_Apache%2BSoftware%2BLicense%2Cp_Ii9wYWNrYWdlcy9jaGVjay1qc29uc2NoZW1hIg%2Cs_aX4vC0polSPaeUpI.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **check-jsonschema**

v0.39.0

A jsonschema CLI and pre-commit hook

474 KB Python 3.11+ py3-none-anyApache Software License6 deps

[** Diff **](https://pypx.app/packages/check-jsonschema/diff)

`$ uv add check-jsonschema`

[![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/)

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

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

```
- 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](https://check-jsonschema.readthedocs.io/)
- [Changelog](https://check-jsonschema.readthedocs.io/en/stable/changelog.html)
- [Contributing](https://github.com/python-jsonschema/check-jsonschema/blob/main/.github/CONTRIBUTING.md)
- [Source](https://github.com/python-jsonschema/check-jsonschema/)
- [PyPI](https://pypi.org/project/check-jsonschema/)

## **Details **

<dl>

<dt>Version</dt>
<dd>0.39.0</dd>

<dt>License</dt>
<dd>Apache Software License</dd>

<dt>Python</dt>
<dd>&gt;=3.11</dd>

<dt>Maintainer</dt>
<dd>Stephen Rosen &lt;sirosen0@gmail.com&gt;</dd></dl>

## **Links**

- [Homepage](https://github.com/python-jsonschema/check-jsonschema)
- [View on PyPI](https://pypi.org/project/check-jsonschema/)

## **Release Cadence **

**12**

releases in the past year

avg 21 days between releases

## **Maintainers **

- Stephen Rosen · [sirosen0@gmail.com](mailto:sirosen0@gmail.com)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/check-jsonschema#webpage","@type":"WebPage","description":"A jsonschema CLI and pre-commit hook","name":"check-jsonschema","url":"https://pypx.app/packages/check-jsonschema","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/check-jsonschema"]}]},{"@id":"https://pypx.app/packages/check-jsonschema#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"A jsonschema CLI and pre-commit hook","license":"Apache Software License","name":"check-jsonschema","softwareVersion":"0.39.0"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
