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

Method Resolve

huma_test.go:3268–3277  ·  view source on GitHub ↗
(ctx huma.Context, prefix *huma.PathBuffer)

Source from the content-addressed store, hash-verified

3266type IntNot3 int
3267
3268func (i IntNot3) Resolve(ctx huma.Context, prefix *huma.PathBuffer) []error {
3269 if i != 0 && i%3 == 0 {
3270 return []error{&huma.ErrorDetail{
3271 Location: prefix.String(),
3272 Message: "Value cannot be a multiple of three",
3273 Value: i,
3274 }}
3275 }
3276 return nil
3277}
3278
3279var _ huma.ResolverWithPath = (*IntNot3)(nil)
3280

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected