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 6
6
from typing import Iterable
7
7
from typing import List
8
8
from typing import Optional
9
+ from typing import cast
9
10
10
11
from isodate .isodatetime import parse_datetime
11
12
from jsonschema ._types import is_array
@@ -218,12 +219,9 @@ def unmarshal_raw(self, value: Any) -> Any:
218
219
return self ._unmarshal_object (value )
219
220
220
221
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" ),
227
225
)
228
226
229
227
def _unmarshal_object (self , value : Any ) -> Any :
You can’t perform that action at this time.
0 commit comments