improve docstring
This commit is contained in:
parent
a67f3a0dc0
commit
535deb9974
@ -4,15 +4,15 @@ from urllib.parse import parse_qs, urlparse
|
||||
|
||||
from openapi_core.validation.request.datatypes import (OpenAPIRequest,
|
||||
RequestParameters)
|
||||
from requests import Request
|
||||
from werkzeug import Request
|
||||
from werkzeug.datastructures import Headers, ImmutableMultiDict
|
||||
from werkzeug.wrappers import Request
|
||||
|
||||
|
||||
class OpenAPIRequestFactory:
|
||||
@classmethod
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user