mirror of
https://github.com/correl/openapi-core.git
synced 2024-12-28 19:19:23 +00:00
Make query params into multidict
This commit is contained in:
parent
fa35d4a5f9
commit
ab3372906b
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
"""OpenAPI core contrib falcon responses module"""
|
||||
from openapi_core.validation.request.datatypes import OpenAPIRequest, RequestParameters
|
||||
from werkzeug.datastructures import ImmutableMultiDict
|
||||
|
||||
|
||||
class FalconOpenAPIRequestFactory:
|
||||
|
@ -14,7 +15,10 @@ class FalconOpenAPIRequestFactory:
|
|||
headers = {key.lower(): value for key, value in req.headers.items()}
|
||||
|
||||
parameters = RequestParameters(
|
||||
path=route_params, query=req.params, header=headers, cookie=req.cookies
|
||||
path=route_params,
|
||||
query=ImmutableMultiDict(req.params.items()),
|
||||
header=headers,
|
||||
cookie=req.cookies,
|
||||
)
|
||||
return OpenAPIRequest(
|
||||
host_url=req.host,
|
||||
|
|
Loading…
Reference in a new issue