Step 1: Create your input struct where you want to do additional validation. This struct must implement the `huma.Resolver` interface.
| 15 | // Step 1: Create your input struct where you want to do additional validation. |
| 16 | // This struct must implement the `huma.Resolver` interface. |
| 17 | type ExampleInputBody struct { |
| 18 | Count int `json:"count" minimum:"0"` |
| 19 | } |
| 20 | |
| 21 | func (b *ExampleInputBody) Resolve(ctx huma.Context, prefix *huma.PathBuffer) []error { |
| 22 | // Return an error if some arbitrary rule is broken. In this case, if it's |
nothing calls this directly
no outgoing calls
no test coverage detected