go get -u github.com/weaming/is-valid-json-schema
Usage of is-valid-json-schema:
-data string
data json path
-listen string
fake api server listen on
-schema string
schema json path
-listen
: serve$CWD
filesystem as API to provide JSON schema validation service.- URI endswith
/
:<uri>/index.json
as schema foo/bar
:foo/bar.json
as schema./map.json
to define your custom mapping from URI to schema file. See map.jsonfoo/bar?path=a/b/c
: extract data from the POST body bypath
a/b/c
as the final data to be validate
- URI endswith
-data
+-schema
: CLI to verifydata
file againstschema
file