matrix-spec/layouts/partials
Richard van der Hoff 6f403f53b5 Pass additionalProperties and patternProperties into render-object-table
Previously, we were stripping `additionalProperties` and `patternProperties`
from all objects except top-level objects. Obviously, this was no good for
objects where a nested property contains such properties.

Fixing that (in `clean-object`) *ought* to be simple enough, except that it
turned out we were relying on the fact that would give us an "empty" entry in
the array of types-to-render-tables-for returned by
`resolve-additional-types`. (Normally, we don't want an object that only has
`additionalProperties` to have its own table, since we just embed it in the
parent table.)

So, we need to add more logic to `resolve-additional-types-inner` to suppress
such tables.

This commit doesn't change the rendered output at all (verified via `diff`):
it's just preparation for what comes next.
2024-04-23 19:44:57 +01:00
..
events Add support for $ref URIs containing fragments in OpenAPI definitions and JSON schemas (#1751) 2024-03-19 14:50:49 +00:00
hooks Update docsy to v0.8.0 (#1699) 2024-02-27 18:12:39 +00:00
json-schema Pass additionalProperties and patternProperties into render-object-table 2024-04-23 19:44:57 +01:00
openapi Improve comments in render-object-table 2024-04-23 19:44:30 +01: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 Update docsy to v0.8.0 (#1699) 2024-02-27 18:12:39 +00: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 Update docsy to v0.8.0 (#1699) 2024-02-27 18:12:39 +00:00
version-banner.html Comments for all the layout templates 2021-01-12 20:45:24 -08:00