Include enum information.
This commit is contained in:
parent
b6b8971491
commit
4ea5da44d0
1 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,9 @@ def _load_schemas():
|
|||
value_type = "[%s]" % props[key_name]["items"]["type"]
|
||||
else:
|
||||
value_type = props[key_name]["type"]
|
||||
if props[key_name].get("enum"):
|
||||
value_type = "enum"
|
||||
desc += " One of: %s" % json.dumps(props[key_name]["enum"])
|
||||
|
||||
fields["rows"].append({
|
||||
"key": key_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue