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

Struct ExhaustiveErrorsInputBody

huma_test.go:3281–3288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3279var _ huma.ResolverWithPath = (*IntNot3)(nil)
3280
3281type ExhaustiveErrorsInputBody struct {
3282 Name string `json:"name" maxLength:"10"`
3283 Count IntNot3 `json:"count" minimum:"1"`
3284
3285 // Having a pointer which is never loaded should not cause
3286 // the tests to fail when running resolvers.
3287 Ptr *IntNot3 `json:"ptr,omitempty" minimum:"1"`
3288}
3289
3290func (b *ExhaustiveErrorsInputBody) Resolve(ctx huma.Context) []error {
3291 return []error{errors.New("body resolver error")}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected