mirror of
https://github.com/correl/openapi-core.git
synced 2025-01-01 11:03:19 +00:00
Import error loop fix
This commit is contained in:
parent
ca988528e7
commit
ad27ac9840
1 changed files with 4 additions and 4 deletions
|
@ -3,8 +3,6 @@ import warnings
|
||||||
|
|
||||||
from six.moves.urllib.parse import urljoin
|
from six.moves.urllib.parse import urljoin
|
||||||
|
|
||||||
from openapi_core.shortcuts import validate_parameters, validate_body
|
|
||||||
|
|
||||||
|
|
||||||
class BaseOpenAPIRequest(object):
|
class BaseOpenAPIRequest(object):
|
||||||
|
|
||||||
|
@ -29,7 +27,8 @@ class BaseOpenAPIRequest(object):
|
||||||
DeprecationWarning,
|
DeprecationWarning,
|
||||||
)
|
)
|
||||||
# backward compatibility
|
# backward compatibility
|
||||||
return validate_body(spec, self)
|
from openapi_core.shortcuts import validate_body
|
||||||
|
return validate_body(spec, self, wrapper_class=None)
|
||||||
|
|
||||||
def get_parameters(self, spec):
|
def get_parameters(self, spec):
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
|
@ -38,7 +37,8 @@ class BaseOpenAPIRequest(object):
|
||||||
DeprecationWarning,
|
DeprecationWarning,
|
||||||
)
|
)
|
||||||
# backward compatibility
|
# backward compatibility
|
||||||
return validate_parameters(spec, self)
|
from openapi_core.shortcuts import validate_parameters
|
||||||
|
return validate_parameters(spec, self, wrapper_class=None)
|
||||||
|
|
||||||
|
|
||||||
class MockRequest(BaseOpenAPIRequest):
|
class MockRequest(BaseOpenAPIRequest):
|
||||||
|
|
Loading…
Reference in a new issue