Skip to content

go-gen-jsonschema

Generate JSON Schema from Go types — deterministic, composable, tested.
  • Deterministic JSON Schema generation from Go types.
  • First-class enums, discriminated interfaces, and provider-rendered schemas.
  • Compile-verified codegen. Golden tests. CI-friendly.
Install & generate
go get github.com/tylergannon/go-gen-jsonschema
# In your package
//go:generate gen-jsonschema
# Run codegen
go generate ./...

Read the Spec

Authoritative schema and behavior specification.

Browse Examples

Real, runnable examples mirroring the spec.

API Reference

Generated Go API docs (godoc → Markdown).