From ad27ac9840d08114fcd7ed0ea1e0f53352a1630c Mon Sep 17 00:00:00 2001 From: Artur Maciag Date: Fri, 3 Nov 2017 15:11:50 +0000 Subject: [PATCH] Import error loop fix --- openapi_core/wrappers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openapi_core/wrappers.py b/openapi_core/wrappers.py index 7f6cbfb..236f2b4 100644 --- a/openapi_core/wrappers.py +++ b/openapi_core/wrappers.py @@ -3,8 +3,6 @@ import warnings from six.moves.urllib.parse import urljoin -from openapi_core.shortcuts import validate_parameters, validate_body - class BaseOpenAPIRequest(object): @@ -29,7 +27,8 @@ class BaseOpenAPIRequest(object): DeprecationWarning, ) # 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): warnings.warn( @@ -38,7 +37,8 @@ class BaseOpenAPIRequest(object): DeprecationWarning, ) # 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):