Clone into $GOPATH
and run:
git clone https://gist.github.com/fb3eb8e804cfbf9e1b7d.git repro
cd repro
go build
./repro
panic: description must be of type string
goroutine 1 [running]:
runtime.panic(0x1f3e20, 0xc21000a730)
/usr/local/go/src/pkg/runtime/panic.c:266 +0xb6
main.main()
/Users/brandur/Documents/go/src/github.com/brandur/gojsonschema-repro/main.go:10 +0xa8
The contents of schema.json
are the minimal required set of attributes to reproduce the bug. By inspecting them you can see that description
points to a subschema as allowed by the specification, but when compiled against gojsonschema it seems to be confused with the description
attribute of a schema.