| Crates.io | jsonschema-cli |
| lib.rs | jsonschema-cli |
| version | 0.33.0 |
| created_at | 2024-09-14 16:43:33.374412+00 |
| updated_at | 2025-08-24 17:40:46.759437+00 |
| description | A command line tool for JSON Schema validation. |
| homepage | |
| repository | https://github.com/Stranger6667/jsonschema |
| max_upload_size | |
| id | 1374923 |
| size | 71,267 |
A fast command-line tool for JSON Schema validation, powered by the jsonschema crate.
cargo install jsonschema-cli
jsonschema [OPTIONS] <SCHEMA>
NOTE: It only supports valid JSON as input.
-i, --instance <FILE>: JSON instance(s) to validate (can be used multiple times)-v, --version: Show version information--help: Display help informationValidate a single instance:
jsonschema schema.json -i instance.json
Validate multiple instances:
jsonschema schema.json -i instance1.json -i instance2.json
jsonschema Rust crateFor each instance, the tool will output:
<filename> - VALID if the instance is valid<filename> - INVALID followed by a list of errors if invalidExample output:
instance1.json - VALID
instance2.json - INVALID. Errors:
1. "name" is a required property
2. "age" must be a number
This project is licensed under the MIT License.