mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-18 00:54:10 +02: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 }}
|
{{ if reflect.IsMap $this_object.items }}
|
||||||
{{ $items_example := partial "json-schema/resolve-example" $this_object.items }}
|
{{ $items_example := partial "json-schema/resolve-example" $this_object.items }}
|
||||||
{{ $example = slice $items_example }}
|
{{ if $items_example }}
|
||||||
{{ else }}
|
{{ $example = slice $items_example }}
|
||||||
{{ $example = slice }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue