From 6600f0c3e1ea9448071642ca73f8f0483298ac83 Mon Sep 17 00:00:00 2001 From: Justin Godesky Date: Tue, 12 Jan 2021 20:14:46 -0500 Subject: [PATCH] ArrayUnmarshaller return None on nullable --- openapi_core/unmarshalling/schemas/unmarshallers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openapi_core/unmarshalling/schemas/unmarshallers.py b/openapi_core/unmarshalling/schemas/unmarshallers.py index b60f9c3..015edff 100644 --- a/openapi_core/unmarshalling/schemas/unmarshallers.py +++ b/openapi_core/unmarshalling/schemas/unmarshallers.py @@ -144,7 +144,8 @@ class ArrayUnmarshaller(ComplexUnmarshaller): def __call__(self, value=NoValue): value = super(ArrayUnmarshaller, self).__call__(value) - + if value is None and self.schema.nullable: + return None return list(map(self.items_unmarshaller, value))