Registry / serialization / juju-gojsonschema

juju-gojsonschema

JSON →
library1.0.0gogounverified

A Go implementation of JSON Schema validation.

go get github.com/juju/gojsonschema
INSTALL
IMPORT
SIG · JUJU-GOJSONSCHEMA
J
juju-gojsonschema
serializationgov1.0.0
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.

gojsonschema
github.com/juju/gojsonschema

Validate a JSON document against a schema.

package main import ( "fmt" "github.com/juju/gojsonschema" ) func main() { schema := gojsonschema.NewStringSchema(`{"type": "object"}`) doc := gojsonschema.NewStringLoader(`{"key": "value"}`) result, _ := schema.Validate(doc) fmt.Println(result.Valid()) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
juju-gojsonschema — go get juju-gojsonschema · libregistry