Registry / serialization / qri-io-jsonschema

qri-io-jsonschema

JSON →
library0.2.1gogounverified

A Go implementation of JSON Schema for validation and description of JSON data.

go get github.com/qri-io/jsonschema
INSTALL
IMPORT
SIG · QRI-IO-JSONSCHEMA
Q
qri-io-jsonschema
serializationgov0.2.1
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/qri-io/jsonschema

Validates JSON data against a JSON Schema.

package main import ( "fmt" "github.com/qri-io/jsonschema" ) func main() { schema := jsonschema.Must(`{"type": "object", "properties": {"name": {"type": "string"}}}`) errs, _ := schema.ValidateBytes([]byte(`{"name": "Alice"}`)) fmt.Println(errs) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
qri-io-jsonschema — go get qri-io-jsonschema · libregistry