Line wrap 80 on desc, show the type of items in the array rather '[array]'

pull/977/head
Kegan Dougal 11 years ago
parent a42a22028c
commit 6d3dd045a5

@ -79,7 +79,7 @@ def _load_schemas():
value_type = "[%s]" % nested_object[0]["title"] value_type = "[%s]" % nested_object[0]["title"]
tables += nested_object tables += nested_object
else: else:
value_type = "[%s]" % props[key_name]["type"] value_type = "[%s]" % props[key_name]["items"]["type"]
else: else:
value_type = props[key_name]["type"] value_type = props[key_name]["type"]
@ -129,7 +129,7 @@ def _load_schemas():
# add summary and desc # add summary and desc
schema["title"] = json_schema.get("title") schema["title"] = json_schema.get("title")
schema["desc"] = json_schema.get("description") schema["desc"] = json_schema.get("description", "")
# walk the object for field info # walk the object for field info
schema["content_fields"] = get_content_fields( schema["content_fields"] = get_content_fields(

@ -1,6 +1,6 @@
``{{event.type}}`` ``{{event.type}}``
{{(4 + event.type | length) * '-'}} {{(4 + event.type | length) * '-'}}
{{event.desc or ""}} {{event.desc | wrap(80)}}
{% for table in event.content_fields -%} {% for table in event.content_fields -%}
{{"``"+table.title+"``" if table.title else ""}} {{"``"+table.title+"``" if table.title else ""}}

Loading…
Cancel
Save