use getall instead of getlist

This commit is contained in:
Gouji Ochiai 2019-11-19 13:07:20 +09:00
parent e88bef490d
commit 8152d20e8e

View file

@ -87,6 +87,8 @@ class Parameter(object):
return self.schema.default return self.schema.default
if self.aslist and self.explode: if self.aslist and self.explode:
if hasattr(location, 'getall'):
return location.getall(self.name)
return location.getlist(self.name) return location.getlist(self.name)
return location[self.name] return location[self.name]