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

Struct CustomSchemaPtr

schema_test.go:79–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77var _ huma.SchemaTransformer = (*CustomSchemaPtr)(nil)
78
79type CustomSchemaPtr struct {
80 Value string `json:"value"`
81}
82
83func (c *CustomSchemaPtr) TransformSchema(r huma.Registry, s *huma.Schema) *huma.Schema {
84 s.Description = "custom description"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected