diff --git a/layouts/partials/openapi/render-object-table.html b/layouts/partials/openapi/render-object-table.html index daedfc41..76f3577b 100644 --- a/layouts/partials/openapi/render-object-table.html +++ b/layouts/partials/openapi/render-object-table.html @@ -53,6 +53,11 @@ {{ end }} + {{/* Enforce `additionalProperties: {}` instead of the equivalent `additionalProperties: true` for easier processing */}} + {{ if eq .additionalProperties true }} + {{ errorf "Use `additionalProperties: {}` instead of `additionalProperties: true`" }} + {{ end }} + {{/* If the object has additional properties *as well as* regular properties, we add a special row to the table. @@ -67,12 +72,6 @@ TODO: support `patternProperties` here. */}} - - {{/* Enforce `additionalProperties: {}` instead of the equivalent `additionalProperties: true` for easier processing */}} - {{ if eq .additionalProperties true }} - {{ errorf "Use `additionalProperties: {}` instead of `additionalProperties: true`" }} - {{ end }} - {{ if reflect.IsMap .additionalProperties }}