hook

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaProvider

type SchemaProvider interface {
	Schema(r SchemaRegistry) *model.Schema
}

SchemaProvider is an interface that can be implemented by types to provide a custom schema for themselves, overriding the built-in schema generation. This can be used by custom types with their own special serialization rules.

type SchemaRegistry

type SchemaRegistry interface {
	Schema(t reflect.Type) *model.Schema
}

SchemaRegistry is a minimal interface for schema generation. It's used by SchemaProvider and SchemaTransformer implementations.

type SchemaTransformer

type SchemaTransformer interface {
	TransformSchema(r SchemaRegistry, s *model.Schema) *model.Schema
}

SchemaTransformer is an interface that can be implemented by types to transform the generated schema as needed. This can be used to leverage the default schema generation for a type, and arbitrarily modify parts of it.

Jump to

Keyboard shortcuts

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