improve docstring
This commit is contained in:
parent
a67f3a0dc0
commit
535deb9974
@ -4,16 +4,16 @@ from urllib.parse import parse_qs, urlparse
|
|||||||
|
|
||||||
from openapi_core.validation.request.datatypes import (OpenAPIRequest,
|
from openapi_core.validation.request.datatypes import (OpenAPIRequest,
|
||||||
RequestParameters)
|
RequestParameters)
|
||||||
from requests import Request
|
from werkzeug import Request
|
||||||
from werkzeug.datastructures import Headers, ImmutableMultiDict
|
from werkzeug.datastructures import Headers, ImmutableMultiDict
|
||||||
from werkzeug.wrappers import Request
|
|
||||||
|
|
||||||
class OpenAPIRequestFactory:
|
class OpenAPIRequestFactory:
|
||||||
@classmethod
|
@classmethod
|
||||||
def create(cls, env):
|
def create(cls, env):
|
||||||
"""
|
"""
|
||||||
Converts a requests request to an OpenAPI one
|
Converts the uwsgi request environment to a request that can be validated against an OpenAPI schema
|
||||||
|
|
||||||
"""
|
"""
|
||||||
request = Request(env)
|
request = Request(env)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user