Registry / serialization / alecthomas-jsonschema

alecthomas-jsonschema

JSON →
library0.0.0-20220216202328-9eeeec9d044bgogounverified

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

go get github.com/alecthomas/jsonschema
INSTALL
IMPORT
SIG · ALECTHOMAS-JSONSCH
A
alecthomas-jsonschema
serializationgov0.0.0-20220216202328-9eeeec9d044b
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/alecthomas/jsonschema

Generate a JSON schema from a Go struct

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

No known issues recorded.

Upgrade
Version history
0.0.0-20220216202328-9eeeec9d044blatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
43 hits · last 30 days
node
40
OpenAI (training)
1
Resources
alecthomas-jsonschema — go get alecthomas-jsonschema · libregistry