Line wrap 80 on desc, show the type of items in the array rather '[array]'
This commit is contained in:
parent
a42a22028c
commit
6d3dd045a5
2 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ def _load_schemas():
|
|||
value_type = "[%s]" % nested_object[0]["title"]
|
||||
tables += nested_object
|
||||
else:
|
||||
value_type = "[%s]" % props[key_name]["type"]
|
||||
value_type = "[%s]" % props[key_name]["items"]["type"]
|
||||
else:
|
||||
value_type = props[key_name]["type"]
|
||||
|
||||
|
@ -129,7 +129,7 @@ def _load_schemas():
|
|||
|
||||
# add summary and desc
|
||||
schema["title"] = json_schema.get("title")
|
||||
schema["desc"] = json_schema.get("description")
|
||||
schema["desc"] = json_schema.get("description", "")
|
||||
|
||||
# walk the object for field info
|
||||
schema["content_fields"] = get_content_fields(
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
``{{event.type}}``
|
||||
{{(4 + event.type | length) * '-'}}
|
||||
{{event.desc or ""}}
|
||||
{{event.desc | wrap(80)}}
|
||||
{% for table in event.content_fields -%}
|
||||
{{"``"+table.title+"``" if table.title else ""}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue