From 3d24029c00bdc12b0097f896fb82b7cd0e7c0276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Thu, 20 Jun 2024 04:30:14 +0200 Subject: [PATCH] Add tr as child of thead in HTML tables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is invalid HTML for th to be the direct children of thead Signed-off-by: Kévin Commaille --- layouts/partials/openapi/render-content-type.html | 6 ++++-- layouts/partials/openapi/render-object-table.html | 14 +++++++++----- layouts/partials/openapi/render-responses.html | 6 ++++-- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/layouts/partials/openapi/render-content-type.html b/layouts/partials/openapi/render-content-type.html index 036522de..96033e16 100644 --- a/layouts/partials/openapi/render-content-type.html +++ b/layouts/partials/openapi/render-content-type.html @@ -16,8 +16,10 @@ - - + + + + {{ range $idx, $content_type := $content_types }} diff --git a/layouts/partials/openapi/render-object-table.html b/layouts/partials/openapi/render-object-table.html index d2b09acb..6a77fa1c 100644 --- a/layouts/partials/openapi/render-object-table.html +++ b/layouts/partials/openapi/render-object-table.html @@ -31,9 +31,11 @@ {{ end }} - - - + + + + + {{ range $property_name, $property := $properties }} @@ -90,8 +92,10 @@ resolve-additional-types.) {{ end }} - - + + + + {{ $property := . }} diff --git a/layouts/partials/openapi/render-responses.html b/layouts/partials/openapi/render-responses.html index 0ffc4884..80dcb582 100644 --- a/layouts/partials/openapi/render-responses.html +++ b/layouts/partials/openapi/render-responses.html @@ -20,8 +20,10 @@
Content-TypeDescription
Content-TypeDescription
{{ . }}
NameTypeDescription
NameTypeDescription
{{ . }}
TypeDescription
TypeDescription
- - + + + + {{ range $code, $response := $responses }}
StatusDescription
StatusDescription