MCPcopy
hub / github.com/danielgtaylor/huma / SchemaProvider

Interface SchemaProvider

schema.go:730–732  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

728// a custom schema for themselves, overriding the built-in schema generation.
729// This can be used by custom types with their own special serialization rules.
730type SchemaProvider interface {
731 Schema(r Registry) *Schema
732}
733
734// SchemaTransformer is an interface that types can implement to transform
735// the generated schema as needed. This can be used to leverage the

Callers 2

SchemaFromFieldFunction · 0.65
schemaFromTypeFunction · 0.65

Implementers 4

CustomSchemaschema_test.go
BadRefSchemaschema_test.go
UUIDhuma_test.go
mapRegistryregistry.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…