Registry / serialization / rawlingsj-jsonschema

rawlingsj-jsonschema

JSON →
library0.0.0-20210511142122-a9c2cfdb7dcfgogounverified

Generates JSON Schemas from Go types using reflection.

go get github.com/rawlingsj/jsonschema
INSTALL
IMPORT
SIG · RAWLINGSJ-JSONSCHE
R
rawlingsj-jsonschema
serializationgov0.0.0-20210511142122-a9c2cfdb7dcf
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/rawlingsj/jsonschema

Generate a JSON schema from a Go struct.

package main import ( "fmt" "github.com/rawlingsj/jsonschema" ) type Example struct { Name string `json:"name"` } func main() { schema := jsonschema.Reflect(&Example{}) fmt.Println(schema) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20210511142122-a9c2cfdb7dcflatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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