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.33.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.33.2.tar.gz (291.4 kB view details)

Uploaded Source

Built Distribution

check_jsonschema-0.33.2-py3-none-any.whl (277.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for check_jsonschema-0.33.2.tar.gz
Algorithm Hash digest
SHA256 20cf97e0a32be7f3652c009ce3538443196677a903b72b3b4cb522fb54ee4588
MD5 852b0f62db3de1e392b51e73cd4678ea
BLAKE2b-256 b001b71c19a199d731663b752cf6a50c4c557bd2ebec539f0b6da7d3f3e21126

See more details on using hashes here.

Provenance

The following attestation bundles were made for check_jsonschema-0.33.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.33.2-py3-none-any.whl.

File metadata

File hashes

Hashes for check_jsonschema-0.33.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7200e1c6e29f4db12ee0762fc28f907d16a6dea935d1c5060aec8bef34e9ac2e
MD5 490cb83ddcac374d079df1d6bfb2b28a
BLAKE2b-256 e74c08894ffa831e4d731d4add7e80799d37131fea2d3a6df88ad4d5fa2917d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for check_jsonschema-0.33.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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page