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 ¶
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.
Click to show internal directories.
Click to hide internal directories.