Skip to main content

A pre-commit hook for validating files against jsonschemas.

Project description

check-jsonschema

A pre-commit hook for checking files against a JSONSchema. The schema may be specified as a local or remote (HTTP or HTTPS) file.

Remote files are automatically downloaded and cached if possible.

Example Usage: Validate GitHub Workflows with Schemastore

Add this hook to your pre-commit config:

- repo: https://github.com/sirosen/check-jsonschema
  rev: 0.1.1
  hooks:
    - id: check-workflows
      name: "Lint GitHub Workflows"
      language: python
      files: ^\.github/workflows/.*\.yaml$
      args: ["--schemafile", "https://json.schemastore.org/github-workflow"]

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.1.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

check_jsonschema-0.1.1-py2.py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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