mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 19:44:09 +01:00
Do not add empty arrays to examples
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
5a86e384dd
commit
27274b72e7
|
|
@ -35,9 +35,9 @@
|
|||
*/}}
|
||||
{{ if reflect.IsMap $this_object.items }}
|
||||
{{ $items_example := partial "json-schema/resolve-example" $this_object.items }}
|
||||
{{ $example = slice $items_example }}
|
||||
{{ else }}
|
||||
{{ $example = slice }}
|
||||
{{ if $items_example }}
|
||||
{{ $example = slice $items_example }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue