You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
matrix-spec/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.
2 years ago
..
changelogs Backport typo fix 3 years ago
events Move `prev_content` to unsigned (#3524) 3 years ago
hooks Render a single page of the spec in Hugo 3 years ago
json-schema Fix rendering of response examples (#3584) 2 years ago
openapi Fix rendering of response examples (#3584) 2 years ago
added-in.html Start annotating which version of the spec added a thing (#3425) 3 years ago
alert.html Support alerts (notes, warnings, rationales) 3 years ago
breadcrumb.html Attempt to fix broken breadcrumb links 3 years ago
changed-in.html Move `prev_content` to unsigned (#3524) 3 years ago
footer.html Comments for all the layout templates 3 years ago
navbar.html Use `changelogs/release.yaml` for the version number source everywhere (#3310) 3 years ago
sidebar-tree.html Comments for all the layout templates 3 years ago
version-banner.html Comments for all the layout templates 3 years ago