gojsonvalidator is a command-line tool based on gojsonschema to validate JSON documents using JSON schema.
Usage of gojsonvalidator:
-f value
One or more document files to validate.
-i Parse a single JSON document from STDIN. (Works in conjunction with -f)
-s string
Schema file to validate documents with. (default "schema.json")
-v Print verbose output about all files.
To install gojsonvalidator use go get
$ go get github.com/johandorland/gojsonvalidator
Dependencies are managed using Glide
- github.com/xeipuuv/gojsonschema for providing JSON schema validation
- github.com/smartystreets/goconvey for testing.
Note that if you want to use GoConvey's web interface while testing, install it using go get github.com/smartystreets/goconvey
as it does not support installation in the vendor directory.