3 releases
0.1.2 | Nov 20, 2019 |
---|---|
0.1.1 | Nov 20, 2019 |
0.1.0 | Nov 20, 2019 |
#2027 in Encoding
7KB
97 lines
jsonsv 0.1.0
jsonsv validates an instance of JSON against a provided schema. it prints "valid" or "invalid" to stdout, and validation errors, if any, to stderr
INSTALLATION
from source
install rustup by following the directions on rustup.rs, then
cargo install jsonsv
download a binary
Binaries are available at https://gitlab.com/efronlicht/jsonsv-bin
USAGE:
jsonsv <schema> <instance>
FLAGS:
-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.
Dependencies
~12MB
~233K SLoC