package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Jan 24, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package schema provides JSON Schema generation from Go types.
Generate generates a JSON Schema from a Go type using reflection.
Supports structs, slices, maps, and primitive types.
Example:
type Response struct {
Name string `json:"name"`
Count int `json:"count"`
Tags []string `json:"tags"`
}
schema := schema.Generate[Response]()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.