Registry / serialization / invopop-jsonschema

invopop-jsonschema

JSON →
library0.14.0gogounverified

Package jsonschema uses reflection to generate JSON Schemas from Go types.

go get github.com/invopop/jsonschema
INSTALL
IMPORT
SIG · INVOPOP-JSONSCHEMA
I
invopop-jsonschema
serializationgov0.14.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.

jsonschema
github.com/invopop/jsonschema

Generate a JSON Schema from a Go struct

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

No known issues recorded.

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

No dependency data recorded yet.

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