mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-29 12:08:37 +01:00
Fix x-changedInMatrixVersion for API parameters (#1011)
This commit is contained in:
parent
f6da709857
commit
dfb1bf2a5d
|
|
@ -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…
Reference in a new issue