We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e147d5e commit c94a623Copy full SHA for c94a623
gen/_template/handlers.tmpl
@@ -205,6 +205,7 @@ func (s *{{ if $op.WebhookInfo }}Webhook{{ end }}Server) handle{{ $op.Name }}Req
205
}: params.{{ $param.Name }},
206
{{- end }}
207
},
208
+ ParamsStruct: {{- if $op.Params }}params{{- else }}nil{{- end }},
209
Raw: r,
210
}
211
middleware/middleware.go
@@ -58,6 +58,8 @@ type Request struct {
58
Body any
59
// Params is the operation parameters.
60
Params Parameters
61
+ // ParamsStruct is the operation parameters. May be nil, if the operation has not parameters.
62
+ ParamsStruct any
63
// Raw is the raw http request.
64
Raw *http.Request
65
0 commit comments