Show arrays in the query string as "[type]" rather than "array"
Otherwise the question "array of what?" is raised.
This commit is contained in:
parent
d279fdafa6
commit
cbbdcbcf01
1 changed files with 5 additions and 0 deletions
|
@ -502,6 +502,11 @@ class MatrixUnits(Units):
|
||||||
# assign value expected for this param
|
# assign value expected for this param
|
||||||
val_type = param.get("type") # integer/string
|
val_type = param.get("type") # integer/string
|
||||||
|
|
||||||
|
if val_type == "array":
|
||||||
|
items = param.get("items")
|
||||||
|
if items:
|
||||||
|
val_type = "[%s]" % items.get("type")
|
||||||
|
|
||||||
if param.get("enum"):
|
if param.get("enum"):
|
||||||
val_type = "enum"
|
val_type = "enum"
|
||||||
desc += (
|
desc += (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue