diff --git a/schema/Makefile b/schema/Makefile index 5f0a4f68..3016fb88 100644 --- a/schema/Makefile +++ b/schema/Makefile @@ -11,5 +11,6 @@ fmt: for i in *.json ; do jq --indent 4 -M . "$${i}" > xx && cat xx > "$${i}" && rm xx ; done validate: validate.go + go get -d ./... go build ./validate.go diff --git a/schema/README.md b/schema/README.md index 592ba610..e81898a0 100644 --- a/schema/README.md +++ b/schema/README.md @@ -20,13 +20,19 @@ There is also included a simple utility for facilitating validation of a ```bash export GOPATH=`mktemp -d` -go get ./... -go build . +go get -d ./... +go build ./validate.go rm -rf $GOPATH ``` +Or you can just use make command to create the utility: + +```bash +make validate +``` + Then use it like: ```bash -./schema schema.json /config.json +./validate schema.json /config.json ```