We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b38a7d9 commit 28b1c1fCopy full SHA for 28b1c1f
flask_restx/swagger.py
@@ -214,7 +214,11 @@ def build_request_body_parameters_schema(body_params):
214
215
properties = {}
216
for param in body_params:
217
- properties[param["name"]] = {"type": param.get("type", "string")}
+ ptype = param.get("type", "string")
218
+ if ptype == "array":
219
+ properties[param["name"]] = {"type": "array", "items": param.get("type", "string")}
220
+ else:
221
+ properties[param["name"]] = {"type": param.get("type", "string")}
222
223
return {
224
"name": "payload",
0 commit comments