From 1d26b3637d99ca8a60f2f550c9c8f6a9ee3ec8ca Mon Sep 17 00:00:00 2001 From: David Robertson Date: Thu, 21 Jul 2022 16:13:09 +0100 Subject: [PATCH] Only italicise the boilerplate text I think this looks better, but what do I know? --- assets/scss/custom.scss | 4 ---- layouts/partials/openapi/render-object-table.html | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/assets/scss/custom.scss b/assets/scss/custom.scss index 3e4e44c8..35b4e3dc 100644 --- a/assets/scss/custom.scss +++ b/assets/scss/custom.scss @@ -370,10 +370,6 @@ footer { width: 75%; } - .row-additional-properties { - font-style: italic; - } - } pre { diff --git a/layouts/partials/openapi/render-object-table.html b/layouts/partials/openapi/render-object-table.html index e78dd901..5029f63c 100644 --- a/layouts/partials/openapi/render-object-table.html +++ b/layouts/partials/openapi/render-object-table.html @@ -103,7 +103,7 @@ {{ if (and (reflect.IsMap $additionalProperties)) -}} {{ if (index $additionalProperties "description") -}} -Notes on additional properties: {{ $additionalProperties.description }} +Notes on additional properties: {{ $additionalProperties.description }} {{ end }} {{/* TODO: should we handle the case where additional properties are permitted, but must follow an explicit schema? */}}