We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents df4bbfe + 06c3d02 commit 14f0a5bCopy full SHA for 14f0a5b
openapi_core/unmarshalling/schemas/unmarshallers.py
@@ -6,6 +6,7 @@
6
from typing import Iterable
7
from typing import List
8
from typing import Optional
9
+from typing import cast
10
11
from isodate.isodatetime import parse_datetime
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)
220
221
def _clone(self, schema: Spec) -> "ObjectUnmarshaller":
- return ObjectUnmarshaller(
222
- schema,
223
- self.validator,
224
- self.formatter,
225
- self.unmarshallers_factory,
226
- self.context,
+ return cast(
+ "ObjectUnmarshaller",
+ self.unmarshallers_factory.create(schema, "object"),
227
)
228
229
def _unmarshal_object(self, value: Any) -> Any:
0 commit comments