Skip to content

Commit ad27ac9

Browse files
committed
Import error loop fix
1 parent ca98852 commit ad27ac9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

openapi_core/wrappers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
from six.moves.urllib.parse import urljoin
55

6-
from openapi_core.shortcuts import validate_parameters, validate_body
7-
86

97
class BaseOpenAPIRequest(object):
108

@@ -29,7 +27,8 @@ def get_body(self, spec):
2927
DeprecationWarning,
3028
)
3129
# backward compatibility
32-
return validate_body(spec, self)
30+
from openapi_core.shortcuts import validate_body
31+
return validate_body(spec, self, wrapper_class=None)
3332

3433
def get_parameters(self, spec):
3534
warnings.warn(
@@ -38,7 +37,8 @@ def get_parameters(self, spec):
3837
DeprecationWarning,
3938
)
4039
# backward compatibility
41-
return validate_parameters(spec, self)
40+
from openapi_core.shortcuts import validate_parameters
41+
return validate_parameters(spec, self, wrapper_class=None)
4242

4343

4444
class MockRequest(BaseOpenAPIRequest):

0 commit comments

Comments
 (0)