Merge pull request #1240 from clokep/enum-commas
Render commas between enum values.
This commit is contained in:
commit
bd4593ff73
2 changed files with 2 additions and 1 deletions
|
@ -0,0 +1 @@
|
|||
Clarify enum values by separating possible values with commas.
|
|
@ -89,7 +89,7 @@
|
|||
<td>
|
||||
{{ if $required }}<strong>Required: </strong>{{end -}}
|
||||
{{ $property.description | markdownify -}}
|
||||
{{ if eq $type "enum"}}<p>One of: <code>{{ $property.enum }}</code>.</p>{{ end -}}
|
||||
{{ if eq $type "enum"}}<p>One of: <code>[{{ delimit $property.enum ", " }}]</code>.</p>{{ end -}}
|
||||
{{ if (index $property "x-addedInMatrixVersion") }}{{ partial "added-in" (dict "v" (index $property "x-addedInMatrixVersion")) }}{{ end -}}
|
||||
{{ if (index $property "x-changedInMatrixVersion") }}{{ partial "changed-in" (dict "changes_dict" (index $property "x-changedInMatrixVersion")) }}{{ end -}}
|
||||
</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue