mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Do not add empty arrays to examples (#1849)
This commit is contained in:
parent
c4b4c896b7
commit
acec09f567
1
changelogs/internal/newsfragments/1849.clarification
Normal file
1
changelogs/internal/newsfragments/1849.clarification
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Do not add empty arrays to examples.
|
||||||
|
|
@ -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 }}
|
||||||
|
{{ if $items_example }}
|
||||||
{{ $example = slice $items_example }}
|
{{ $example = slice $items_example }}
|
||||||
{{ else }}
|
{{ end }}
|
||||||
{{ $example = slice }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue