Registry / serialization / santhosh-tekuri-jsonschema

santhosh-tekuri-jsonschema

JSON →
library1.2.4gogounverified

A Go package for compiling and validating JSON Schema drafts 4, 6, and 7 with support for custom formats and loaders.

go get github.com/santhosh-tekuri/jsonschema
INSTALL
IMPORT
SIG · SANTHOSH-TEKURI-JS
S
santhosh-tekuri-jsonschema
serializationgov1.2.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

jsonschema
github.com/santhosh-tekuri/jsonschema

Compile a JSON Schema and validate data against it.

package main import ( "fmt" "github.com/santhosh-tekuri/jsonschema" ) func main() { schema, err := jsonschema.Compile("schema.json") if err != nil { panic(err) } var data interface{} if err := schema.Validate(data); err != nil { fmt.Println(err) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
santhosh-tekuri-jsonschema — go get santhosh-tekuri-jsonschema · libregistry