Skip to content

Commit

Permalink
Put commas between enum values.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Sep 16, 2022
1 parent e406bd9 commit fcf98ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1240.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify enum values by separting with commas.
2 changes: 1 addition & 1 deletion layouts/partials/openapi/render-object-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit fcf98ca

Please sign in to comment.