Improve type naming

pull/977/head
Travis Ralston 6 years ago
parent 5ade15534d
commit 9fa838d3e8

@ -302,7 +302,7 @@ def process_data_type(prop, required=False, enforce_title=True):
for i in items: for i in items:
nested = process_data_type(i) nested = process_data_type(i)
tables.extend(nested['tables']) tables.extend(nested['tables'])
nested_titles.extend([nested['title']]) nested_titles.append(nested['title'])
prop_title = "[%s]" % (", ".join(nested_titles), ) prop_title = "[%s]" % (", ".join(nested_titles), )
else: else:
nested = process_data_type(prop["items"]) nested = process_data_type(prop["items"])
@ -523,10 +523,8 @@ class MatrixUnits(Units):
items = param.get("items") items = param.get("items")
if items: if items:
if isinstance(items, list): if isinstance(items, list):
val_type = "[" types = ", ".join(i.get("type") for i in items)
for i in items: val_type = "[%s]" % (types,)
val_type += "%s, " % items.get("type")
val_type = val_type[:-2] + "]"
else: else:
val_type = "[%s]" % items.get("type") val_type = "[%s]" % items.get("type")

Loading…
Cancel
Save