From dfb1bf2a5df469fc88b1c25e2da0a604bd0d3b2a Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Tue, 29 Mar 2022 23:17:51 +0100 Subject: [PATCH] Fix `x-changedInMatrixVersion` for API parameters (#1011) --- layouts/partials/openapi/render-parameters.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/openapi/render-parameters.html b/layouts/partials/openapi/render-parameters.html index 2b4fb09d..2a36ea8d 100644 --- a/layouts/partials/openapi/render-parameters.html +++ b/layouts/partials/openapi/render-parameters.html @@ -18,10 +18,10 @@ {{ with $parameters_of_type }} - {{/* convert parameters into the format that render-object-table expects to see */}} + {{/* build a dict mapping from name->parameter, which render-object-table expects */}} {{ $param_dict := dict }} {{ range $parameter := . }} - {{ $param_dict = merge $param_dict (dict $parameter.name (dict "type" $parameter.type "description" $parameter.description "required" $parameter.required "enum" $parameter.enum) )}} + {{ $param_dict = merge $param_dict (dict $parameter.name $parameter )}} {{ end }} {{/* and render the parameters */}}