jsonschema
jsonschema copied to clipboard
JSONSchema (draft 2020-12, draft 2019-09, draft-7, draft-6, draft-4) Validation using Go
Although `regexp` from the Go standard library doesn't support lookaheads, they are described in ECMA 262, and JSON Schema [appears to follow](https://json-schema.org/understanding-json-schema/reference/regular_expressions.html#regular-expressions) that. Since clients validating documents with JSON schema...
If a file provided to cmd/jv ends in .yaml or .yml, instead of unmarshalling as a JSON file it's instead unmarshalled as YAML and validated as per the instructions in...
Wanted to install `jv` 5.0, but `go install` couldn't figure it out: ``` $ go version go version go1.17.1 darwin/amd64 $ go install github.com/santhosh-tekuri/jsonschema/cmd/jv@v5 go install: github.com/santhosh-tekuri/jsonschema/cmd/jv@v5: no matching versions...
If there is $ref, everything is ignored if draft
Sometimes an extension compiler needs to collect metadata about the instance of the keyword being compiled - most notably, its location. With the proposed method, one can collect the location...
Is it possible to perform something equivalent to `Compiler.AddResource` but for a pre-compiled schema? In my application, I have a number of schemas already compiled with `jsonschema.MustCompileString` for other uses....
for large json validation may cause mess validation error, string concat cause poor performance, use byte.Buffer much better
closes Issue #44
This PR: * adds support for `"https://json-schema.org/draft/2020-12/hyper-schema"`