mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 13:04:10 +01:00
render-event: pass an anchor_base into resolve-additional-types
This means that it will generate an anchor for each type, whihc will then be passed into render-object-table and used as an `id` for the table.
This commit is contained in:
parent
b2b169ed1e
commit
06d3ad4d2c
|
|
@ -53,7 +53,8 @@
|
|||
|
||||
<h2>Content</h2>
|
||||
|
||||
{{ $additional_types := partial "json-schema/resolve-additional-types" (dict "schema" $event_data.properties.content) }}
|
||||
{{ $anchor_base := anchorize $event_name }}
|
||||
{{ $additional_types := partial "json-schema/resolve-additional-types" (dict "schema" $event_data.properties.content "anchor_base" $anchor_base) }}
|
||||
|
||||
{{ range $additional_types }}
|
||||
{{ partial "openapi/render-object-table" . }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue