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] - x86_64-apple-darwin (OSX):

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.