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-proposals/layouts/partials/openapi
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.
3 years ago
..
render-api.html Add templates used to render data 3 years ago
render-object-table.html Move `prev_content` to unsigned (#3524) 3 years ago
render-operation.html Move `prev_content` to unsigned (#3524) 3 years ago
render-parameters.html Add templates used to render data 3 years ago
render-request.html Fix rendering of response examples (#3584) 3 years ago
render-responses.html Fix rendering of response examples (#3584) 3 years ago