mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-28 11:09:52 +00:00
use getall instead of getlist
This commit is contained in:
parent
e88bef490d
commit
8152d20e8e
1 changed files with 2 additions and 0 deletions
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue