(ctx huma.Context)
| 45 | } |
| 46 | |
| 47 | func (p *Params) Resolve(ctx huma.Context) []error { |
| 48 | switch ctx.Method() { |
| 49 | case http.MethodPost, http.MethodPut, http.MethodPatch, http.MethodDelete: |
| 50 | p.isWrite = true |
| 51 | } |
| 52 | return nil |
| 53 | } |
| 54 | |
| 55 | // HasConditionalParams returns true if any conditional request headers have |
| 56 | // been set on the incoming request. |