matrix-doc/layouts
Richard van der Hoff 3be746c9d3
Fix rendering of response examples (#3584)
* Fix rendering of response examples

Fixes the autogeneration of JSON examples for array objects. This fixes a
number of "Specification error: Example invalid or not present" errors in the
rendered spec.

* Unbreak examples for non-objects/arrays

The previous change had broken auto-generated examples for everything that
wasn't an object or array; fix it up again.

* Remove conditions on $example

Everything should now have a generated example, so the condition is
redundant. Furthermore it was suppressing examples for APIs where the example
was an empty dict.
2022-01-04 16:47:58 +00:00
..
_default Render a single page of the spec in Hugo 2021-01-12 15:31:01 -08:00
docs Comments for all the layout templates 2021-01-12 20:45:24 -08:00
partials Fix rendering of response examples (#3584) 2022-01-04 16:47:58 +00:00
shortcodes Add a changelog directory for room versions (#3504) 2021-11-19 11:00:37 +00:00
404.html Render a single page of the spec in Hugo 2021-01-12 15:31:01 -08:00