Update router code to automatically handle and split array parameter
types.
@@ -437,6 +437,11 @@ class Router(object):
raise exc.HTTPBadRequest(detail=detail)
kw[argument_name] = float(kw[argument_name])
+ elif param_type == 'array' and param.get('items', {}).get('type', None) == 'string':
+ if kw[argument_name] is None:
+ kw[argument_name] = []
+ else:
+ kw[argument_name] = kw[argument_name].split(',')
# Call the controller
try:
