Method
Resolve
(ctx huma.Context, prefix *huma.PathBuffer)
Source from the content-addressed store, hash-verified
| 3266 | type IntNot3 int |
| 3267 | |
| 3268 | func (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 | |
| 3279 | var _ huma.ResolverWithPath = (*IntNot3)(nil) |
| 3280 | |
Callers
nothing calls this directly
Tested by
no test coverage detected