mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-12 06:24:09 +01:00
Line wrap 80 on desc, show the type of items in the array rather '[array]'
This commit is contained in:
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…
Reference in a new issue