File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
openapi_core/unmarshalling/schemas Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 66from typing import Iterable
77from typing import List
88from typing import Optional
9+ from typing import cast
910
1011from isodate .isodatetime import parse_datetime
1112from jsonschema ._types import is_array
@@ -218,12 +219,9 @@ def unmarshal_raw(self, value: Any) -> Any:
218219 return self ._unmarshal_object (value )
219220
220221 def _clone (self , schema : Spec ) -> "ObjectUnmarshaller" :
221- return ObjectUnmarshaller (
222- schema ,
223- self .validator ,
224- self .formatter ,
225- self .unmarshallers_factory ,
226- self .context ,
222+ return cast (
223+ "ObjectUnmarshaller" ,
224+ self .unmarshallers_factory .create (schema , "object" ),
227225 )
228226
229227 def _unmarshal_object (self , value : Any ) -> Any :
You can’t perform that action at this time.
0 commit comments