--- a/Godeps/Godeps.json Thu Nov 05 20:53:51 2015 -0600
+++ b/Godeps/Godeps.json Thu Nov 05 20:54:09 2015 -0600
@@ -1,5 +1,18 @@
"ImportPath": "bitbucket.org/rw_grim/resticide",
- "GoVersion": "go1.4.2",
+ "GoVersion": "go1.5.1", + "ImportPath": "github.com/xeipuuv/gojsonpointer", + "Rev": "e0fe6f68307607d540ed8eac07a342c33fa1b54a" + "ImportPath": "github.com/xeipuuv/gojsonreference", + "Rev": "e02fc20de94c78484cd5ffb007f8af96be030a45" + "ImportPath": "github.com/xeipuuv/gojsonschema", + "Rev": "ac452913faa25c08bb78810d3e6f88b8a39f8f25" --- a/Makefile Thu Nov 05 20:53:51 2015 -0600
+++ b/Makefile Thu Nov 05 20:54:09 2015 -0600
@@ -2,21 +2,26 @@
+GOPATH ?= $(shell pwd)/go PATH := $(GOPATH)/bin:$(PATH)
-.PHONY: all deps clean check
+.PHONY: all deps clean check godep
+deps: Godeps/Godeps.json + GOPATH=$(GOPATH) go get github.com/tools/godep +Godeps/Godeps.json: godep
+ GOPATH=$(GOPATH) go get github.com/jteeuwen/go-bindata/...
+assets.go: assets Godeps/Godeps.json gobindata $(TARGET): *.go assets.go
--- a/test.go Thu Nov 05 20:53:51 2015 -0600
+++ b/test.go Thu Nov 05 20:54:09 2015 -0600
@@ -3,11 +3,14 @@
+ "github.com/xeipuuv/gojsonschema" @@ -45,10 +48,28 @@
+func load_schema() (*gojsonschema.Schema, error) { + schema_bytes, err := Asset("assets/schema.json") + schema_string := string(schema_bytes[:]) + schema_loader = gojsonschema.NewStringLoader(schema_string) + schema = gojsonschema.NewSchema(schema_loader) func find_tests(path string) ([]Test, error) {
+ schema, err := load_schema() - err := filepath.Walk(path, func(path string, _ os.FileInfo, _ error) error {
+ err = filepath.Walk(path, func(path string, _ os.FileInfo, _ error) error { stat, err := os.Stat(path)