Skip to content

Commit

Permalink
Merge pull request #385 from hqhq/hq_fix_schema_readme
Browse files Browse the repository at this point in the history
Fix example in schema README
  • Loading branch information
Mrunal Patel committed Apr 15, 2016
2 parents 9d19982 + aaf05c4 commit 9d3aef5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions schema/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

12 changes: 9 additions & 3 deletions schema/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 9d3aef5

Please sign in to comment.