Registry / serialization / ory-jsonschema-v3

ory-jsonschema-v3

JSON →
library3.0.8gogounverified

Package jsonschema provides json-schema compilation and validation.

go get github.com/ory/jsonschema/v3
INSTALL
IMPORT
SIG · ORY-JSONSCHEMA-V3
O
ory-jsonschema-v3
serializationgov3.0.8
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/ory/jsonschema/v3

Compiles and validates a JSON document against a JSON Schema.

package main import ( "fmt" "github.com/ory/jsonschema/v3" ) func main() { c := jsonschema.NewCompiler() schema, err := c.Compile("https://example.com/schema.json") if err != nil { panic(err) } if err := schema.Validate(map[string]interface{}{"name": "test"}); err != nil { fmt.Println("Invalid:", err) } else { fmt.Println("Valid") } }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ory-jsonschema-v3 — go get ory-jsonschema-v3 · libregistry