Fix `x-changedInMatrixVersion` for API parameters (#1011)

pull/1028/head
Richard van der Hoff 3 years ago committed by GitHub
parent f6da709857
commit dfb1bf2a5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 */}}

Loading…
Cancel
Save