浏览代码

add missing parameter as_list

Bastien Sevajol 6 年前
父节点
当前提交
76f43f817d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      hapic/hapic.py

+ 2 - 0
hapic/hapic.py 查看文件

@@ -225,6 +225,7 @@ class Hapic(object):
225 225
         context: ContextInterface = None,
226 226
         error_http_code: HTTPStatus = HTTPStatus.BAD_REQUEST,
227 227
         default_http_code: HTTPStatus = HTTPStatus.OK,
228
+        as_list: typing.List[str]=None,
228 229
     ) -> typing.Callable[[typing.Callable[..., typing.Any]], typing.Any]:
229 230
         processor = processor or MarshmallowInputProcessor()
230 231
         processor.schema = schema
@@ -235,6 +236,7 @@ class Hapic(object):
235 236
             processor=processor,
236 237
             error_http_code=error_http_code,
237 238
             default_http_code=default_http_code,
239
+            as_list=as_list,
238 240
         )
239 241
 
240 242
         def decorator(func):