check-jsonschema
$ check-jsonschema Community Low Riskcheck-jsonschema validates JSON, YAML, and TOML files against local schemas, remote URLs, or vendored SchemaStore schemas (--builtin-schema, e.g., GitHub Workflows, Dependabot, pyproject), emitting structured -o JSON diagnostics.
brew install check-jsonschema Validates YAML/TOML/JSON configs against local or vendored SchemaStore schemas locally with -o JSON error reports.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -o JSON (--output-format JSON), --no-cache, clean 0/1 exit codes, and non-interactive multi-file validation.
- Supports
-o JSONstructured diagnostics - Zero interactive prompts
Strictly read-only validator; only writes optional remote schema caches unless --no-cache is passed.
- Strictly read-only validation tool
Available via Homebrew, pip, and uvx across macOS, Linux, and Windows.
- Available via
brew install check-jsonschemaand PyPI
Natively parses JSON, YAML, and TOML and ships vendored SchemaStore schemas for CI/config linting without network calls.
- Handles JSON/YAML/TOML plus
--builtin-schema
Actively maintained under python-jsonschema/check-jsonschema with Apache-2.0 license.
- Active
python-jsonschema/check-jsonschemarepository
Clear ReadTheDocs manual listing CLI flags and all built-in schema identifiers.
- Official docs at check-jsonschema.readthedocs.io
Security, Auth & Guardrails
None; optionally caches fetched remote schemas locally under ~/.cache/check_jsonschema.
Apache-2.0 open-source CLI; completely free.
# check-jsonschema Agent Rules - Always pass `-o JSON` (`--output-format JSON`) for machine-parseable validation errors. - Use `--builtin-schema` for standard configs (e.g. `vendor.github-workflows`) in air-gapped sandboxes.
Agent-Ready Command Recipes
Safe Read-Only Queries
check-jsonschema --schemafile schema.json -o JSON data.yaml
Validates data.yaml against schema.json and outputs structured JSON validation results.
check-jsonschema --builtin-schema vendor.github-workflows -o JSON .github/workflows/ci.yml
Validates CI workflows offline using vendored SchemaStore definitions.
Strengths for Agents
- +
-o JSONemits clean structured failure paths and messages for automated repair loops. - + Vendored
--builtin-schemapresets validate GitHub Workflows, Dependabot, and Renovate configs offline. - + Supports JSON, YAML, and TOML inputs uniformly.
Caveats & Pitfalls
- ! Passing remote HTTP URLs to
--schemafileattempts network fetches unless--no-cache/local files are used. - ! Python startup is slightly slower than compiled Rust/Go validators.