Commit graph

5 commits

Author SHA1 Message Date
Richard van der Hoff 1ed4e40362 render-object-table: take a "title" rather than a "caption"
... which means we can use the result from resolve-additional-types directly.
2022-07-19 17:50:33 +01:00
Richard van der Hoff c508f1e917 Update resolve-additional-types to take a dict
I want to add more params to this, so first make it take a dict.
2022-07-19 17:13:14 +01:00
Richard van der Hoff 783624d2cd
Fix rendering of responses with empty bodies (#3674) 2022-01-26 10:50:09 +00:00
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
Will 5f45a897ef Add templates used to render data 2021-08-27 19:16:42 +01:00