Merge pull request #385 from hqhq/hq_fix_schema_readme

Fix example in schema README
This commit is contained in:
Mrunal Patel 2016-04-15 12:24:39 -07:00
commit 9d3aef58a7
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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 <yourpath>/config.json
./validate schema.json <yourpath>/config.json
```