ArrayUnmarshaller return None on nullable

This commit is contained in:
Justin Godesky 2021-01-12 20:14:46 -05:00 committed by GitHub
parent 0aeb14477b
commit 6600f0c3e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))