Skip to main content

A jsonschema CLI and pre-commit hook

Project description

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

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

check_jsonschema-0.37.2.tar.gz (414.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

check_jsonschema-0.37.2-py3-none-any.whl (399.2 kB view details)

Uploaded Python 3

File details

Details for the file check_jsonschema-0.37.2.tar.gz.

File metadata

  • Download URL: check_jsonschema-0.37.2.tar.gz
  • Upload date:
  • Size: 414.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for check_jsonschema-0.37.2.tar.gz
Algorithm Hash digest
SHA256 2977f31ebbd3e4eb37325057b83b56c0041b2b520e12818ec84da1f6c7c60363
MD5 123c5726d9becee1882dd5d796eb096b
BLAKE2b-256 c7b52f4b66ac68e5dcf999f2df7d7d72d474b8f9d17ddd1ae2159ba81c55652a

See more details on using hashes here.

Provenance

The following attestation bundles were made for check_jsonschema-0.37.2.tar.gz:

Publisher: publish_to_pypi.yaml on python-jsonschema/check-jsonschema

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file check_jsonschema-0.37.2-py3-none-any.whl.

File metadata

File hashes

Hashes for check_jsonschema-0.37.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0840dc56219922f7a34d4e4a4364f96bbf05983850dbb64149f4c6f17b3affd1
MD5 481130393b194a4e7953a0131f7f9943
BLAKE2b-256 5f890c8eebd5d9439abb38a79edca7a93c96e67e0d1e14ab1f6db016d27b15ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for check_jsonschema-0.37.2-py3-none-any.whl:

Publisher: publish_to_pypi.yaml on python-jsonschema/check-jsonschema

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page