Skip to content

Commit 9c6dabd

Browse files
add query string to validation (#21)
1 parent 4f22fdf commit 9c6dabd

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

oapi_validate.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,10 @@ func doValidateRequest(r *http.Request, router routers.Router, options *Options)
319319

320320
// Validate request
321321
requestValidationInput := &openapi3filter.RequestValidationInput{
322-
Request: r,
323-
PathParams: pathParams,
324-
Route: route,
322+
Request: r,
323+
PathParams: pathParams,
324+
QueryParams: r.URL.Query(),
325+
Route: route,
325326
}
326327

327328
if options != nil {

0 commit comments

Comments
 (0)