Crates.io | jsonsv |
lib.rs | jsonsv |
version | 0.1.2 |
source | src |
created_at | 2019-11-20 18:38:04.366629 |
updated_at | 2019-11-20 22:57:30.623108 |
description | simple CLI validator for JSON schema |
homepage | |
repository | http://gitlab.com/efronlicht/jsonsv |
max_upload_size | |
id | 183044 |
size | 30,382 |
jsonsv validates an instance of JSON against a provided schema. it prints "valid" or "invalid" to stdout, and validation errors, if any, to stderr
install rustup by following the directions on rustup.rs, then
cargo install jsonsv
Binaries are available at [https://gitlab.com/efronlicht/jsonsv-bin]
jsonsv <schema> <instance>
-h, --help Prints help information
-V, --version Prints version information
ARGS:
- <schema> the schema to validate against. tries to load the path given as a file. if that file doesn't exist, treats the input as a string.
- <instance> the instance to validate with the schema. tries to load the path given as a file. if that file doesn't exist, treats the input as as string.