From a6990ff27c096b206ffd19c4e26b9418458a08b2 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Tue, 6 Sep 2022 17:21:51 +0100 Subject: [PATCH] Fix spacing of mapping types (#1230) * Fix spacing of mapping types * Changelog --- changelogs/internal/newsfragments/1230.clarification | 1 + layouts/partials/openapi/render-object-table.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelogs/internal/newsfragments/1230.clarification diff --git a/changelogs/internal/newsfragments/1230.clarification b/changelogs/internal/newsfragments/1230.clarification new file mode 100644 index 00000000..736fbd12 --- /dev/null +++ b/changelogs/internal/newsfragments/1230.clarification @@ -0,0 +1 @@ +Fix the spacing of mapping types generated from the OpenAPI spec. diff --git a/layouts/partials/openapi/render-object-table.html b/layouts/partials/openapi/render-object-table.html index b5e332dd..b49cb3e8 100644 --- a/layouts/partials/openapi/render-object-table.html +++ b/layouts/partials/openapi/render-object-table.html @@ -73,7 +73,7 @@ */}} {{ if reflect.IsMap $property.additionalProperties }} {{ if $property.additionalProperties.title }} - {{ $type = delimit (slice "{ string: " $property.additionalProperties.title "}" ) "" }} + {{ $type = delimit (slice "{string: " $property.additionalProperties.title "}" ) "" }} {{ end }} {{ end }}