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

Interface Resolver

api.go:31–33  ·  view source on GitHub ↗

Resolver runs a `Resolve` function after a request has been parsed, enabling you to run custom validation or other code that can modify the request and / or return errors.

Source from the content-addressed store, hash-verified

29// you to run custom validation or other code that can modify the request and /
30// or return errors.
31type Resolver interface {
32 Resolve(ctx Context) []error
33}
34
35// ResolverWithPath runs a `Resolve` function after a request has been parsed,
36// enabling you to run custom validation or other code that can modify the

Callers 1

RegisterFunction · 0.65

Implementers 13

CountingInnerhuma_test.go
ResolverCallshuma_test.go
ExampleInputBodyresolver_test.go
GreetingInputWithResolverBodyadapters/humabunrouter/humabunrouter_t
GreetingInputWithResolveradapters/humabunrouter/humabunrouter_t
GreetingInputWithResolverBodyadapters/humachi/humachi_test.go
GreetingInputWithResolveradapters/humachi/humachi_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…