From 8152d20e8e254ed86f51fd2ad55f7841d99399aa Mon Sep 17 00:00:00 2001 From: Gouji Ochiai Date: Tue, 19 Nov 2019 13:07:20 +0900 Subject: [PATCH] use getall instead of getlist --- openapi_core/schema/parameters/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openapi_core/schema/parameters/models.py b/openapi_core/schema/parameters/models.py index 98af859..766116d 100644 --- a/openapi_core/schema/parameters/models.py +++ b/openapi_core/schema/parameters/models.py @@ -87,6 +87,8 @@ class Parameter(object): return self.schema.default if self.aslist and self.explode: + if hasattr(location, 'getall'): + return location.getall(self.name) return location.getlist(self.name) return location[self.name]