mirror of
https://github.com/correl/openapi-core.git
synced 2024-12-28 03:00:11 +00:00
ArrayUnmarshaller return None on nullable
This commit is contained in:
parent
0aeb14477b
commit
6600f0c3e1
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue