()
| 32 | } |
| 33 | |
| 34 | func NewQueryParamParser() *QueryParamParser { |
| 35 | return &QueryParamParser{ |
| 36 | Errors: []codersdk.ValidationError{}, |
| 37 | Parsed: map[string]bool{}, |
| 38 | RequiredNotEmptyParams: map[string]bool{}, |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // ErrorExcessParams checks if any query params were passed in that were not |
| 43 | // parsed. If so, it adds an error to the parser as these values are not valid |
no outgoing calls