improve docstring

This commit is contained in:
William Luke 2021-12-08 14:31:49 +03:00
parent a67f3a0dc0
commit 535deb9974

View File

@ -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)