Skip to content

Commit 6600f0c

Browse files
authored
ArrayUnmarshaller return None on nullable
1 parent 0aeb144 commit 6600f0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openapi_core/unmarshalling/schemas/unmarshallers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ def items_unmarshaller(self):
144144

145145
def __call__(self, value=NoValue):
146146
value = super(ArrayUnmarshaller, self).__call__(value)
147-
147+
if value is None and self.schema.nullable:
148+
return None
148149
return list(map(self.items_unmarshaller, value))
149150

150151

0 commit comments

Comments
 (0)