Skip to content

A CLI and set of pre-commit hooks for jsonschema validation with built-in support for GitHub Workflows, Renovate, Azure Pipelines, and more!

License

Notifications You must be signed in to change notification settings

python-jsonschema/check-jsonschema

Folders and files

NameName
Last commit message
Last commit date
Mar 2, 2025
Mar 26, 2025
Mar 7, 2025
Mar 26, 2025
Mar 26, 2025
Jun 6, 2022
Dec 23, 2024
Aug 11, 2023
Mar 11, 2025
Mar 26, 2025
Dec 23, 2024
Mar 26, 2025
Mar 30, 2022
Jan 8, 2021
Aug 15, 2023
Aug 5, 2024
Mar 26, 2025
Feb 20, 2025
Mar 26, 2025
Jan 8, 2021
Mar 2, 2025

Repository files navigation

pypi version supported pythons build pre-commit.ci status readthedocs documentation

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.32.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/