We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
x-changedInMatrixVersion
1 parent f6da709 commit dfb1bf2Copy full SHA for dfb1bf2
layouts/partials/openapi/render-parameters.html
@@ -18,10 +18,10 @@
18
19
{{ with $parameters_of_type }}
20
21
- {{/* convert parameters into the format that render-object-table expects to see */}}
+ {{/* build a dict mapping from name->parameter, which render-object-table expects */}}
22
{{ $param_dict := dict }}
23
{{ range $parameter := . }}
24
- {{ $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 )}}
25
{{ end }}
26
27
{{/* and render the parameters */}}
0 commit comments