Merge pull request #385 from hqhq/hq_fix_schema_readme
Fix example in schema README
This commit is contained in:
commit
9d3aef58a7
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue