Documentation
¶
Overview ¶
Package schema provides utilities for generating JSON schemas from Go types, enabling validation and documentation of tool and message parameters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONSchema ¶
func JSONSchema(t reflect.Type) *jsonschema.Schema
JSONSchema return the json schema of the configuration
func ToFunctionSchema ¶
func ToFunctionSchema(tType reflect.Type, tSchema *jsonschema.Schema) *jsonschema.Schema
Types ¶
type Faker ¶
type Faker interface {
Fake() any
}
Faker is a interface for generating structures with fake data. It is used for generating test data.
type Schema ¶
type Schema struct {
*jsonschema.Schema
// Parameters represents the Function parameters definition
Parameters any
}
func (*Schema) NameFromRef ¶
Click to show internal directories.
Click to hide internal directories.