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

Struct GreetingInputWithResolverBody

adapters/humachi/humachi_test.go:81–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81type GreetingInputWithResolverBody struct {
82 Suffix string `json:"suffix" maxLength:"5"`
83}
84
85func (b *GreetingInputWithResolverBody) Resolve(ctx huma.Context, prefix *huma.PathBuffer) []error {
86 if len(b.Suffix) > 0 && b.Suffix[0] == 'a' {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected