mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Ensure the example is always set to something
This commit is contained in:
parent
4b1955f395
commit
96f5510266
|
|
@ -681,6 +681,7 @@ class MatrixUnits(Units):
|
||||||
try:
|
try:
|
||||||
example = get_example_for_schema(definition)
|
example = get_example_for_schema(definition)
|
||||||
except:
|
except:
|
||||||
|
example = None
|
||||||
pass # do nothing - we don't care
|
pass # do nothing - we don't care
|
||||||
if 'title' not in definition:
|
if 'title' not in definition:
|
||||||
definition['title'] = "NO_TITLE"
|
definition['title'] = "NO_TITLE"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue