matrix-doc/layouts/partials
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
..
changelogs Backport typo fix 2021-11-09 08:19:21 -07:00
events Move `prev_content` to unsigned (#3524) 2021-12-02 17:22:58 +00:00
hooks Render a single page of the spec in Hugo 2021-01-12 15:31:01 -08:00
json-schema Fix rendering of response examples (#3584) 2022-01-04 16:47:58 +00:00
openapi Fix rendering of response examples (#3584) 2022-01-04 16:47:58 +00:00
added-in.html Start annotating which version of the spec added a thing (#3425) 2021-10-14 13:23:04 -06:00
alert.html Support alerts (notes, warnings, rationales) 2021-01-20 12:34:49 -08:00
breadcrumb.html Attempt to fix broken breadcrumb links 2021-08-27 19:17:07 +01:00
changed-in.html Move `prev_content` to unsigned (#3524) 2021-12-02 17:22:58 +00:00
footer.html Comments for all the layout templates 2021-01-12 20:45:24 -08:00
navbar.html Use `changelogs/release.yaml` for the version number source everywhere (#3310) 2021-08-27 19:17:17 +01:00
sidebar-tree.html Comments for all the layout templates 2021-01-12 20:45:24 -08:00
version-banner.html Comments for all the layout templates 2021-01-12 20:45:24 -08:00