JSON Schema CLI is a command-line toolkit developed by Sourcemeta for creating, validating, testing, and maintaining JSON Schema documents. Written in C++, it supports modern JSON Schema specifications and several historical dialects. The application validates structured data against schemas and checks schema definitions against their corresponding metaschemas. Developers can automatically format documents, identify design inconsistencies, and execute schema unit tests. Its bundling functionality resolves external references and incorporates referenced schemas into self-contained documents. Additional commands support schema compilation, dialect upgrades, code generation, and binary data compression. Integration with GitHub Actions and pre-commit hooks facilitates automated schema management across development environments.
Features
- JSON Schema validation with support for modern specifications and historical dialects
- Automated schema formatting, linting, metaschema validation, and unit testing
- External reference resolution and schema bundling into self-contained documents
- Schema precompilation, dialect migration, and reference debugging capabilities
- Schema-driven code generation, binary compression, and structured AI output integration
- GitHub Actions and pre-commit hook integration for automated schema quality management