jsonschema

package
v0.1.121 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package jsonschema derives a JSON Schema from a Go type at runtime, for app-defined MCP tools whose input is a Go struct. It follows the same conventions as the build-time generator in pkg/inspect: json tags, omitempty as optional, pointers as nullable, time.Time as date-time, decimal.Decimal as a string of format decimal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Of

func Of(v any) map[string]any

Of returns the schema of v's type.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL