From 06d3ad4d2cabafe8efe2ff2f43c633ca3c5ba419 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 19 Jul 2022 18:22:02 +0100 Subject: [PATCH] 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. --- layouts/partials/events/render-event.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/partials/events/render-event.html b/layouts/partials/events/render-event.html index feaace36..5e9f5c13 100644 --- a/layouts/partials/events/render-event.html +++ b/layouts/partials/events/render-event.html @@ -53,7 +53,8 @@

Content

-{{ $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" . }}