{{ with .element }}
{{ with $.name }}
{{ . }}:
{{ end }}
arrayOf [
{{ template "schema" . }}
]
{{ else }}
{{ if (eq .name .kind) }}
{{ .kind }}
{{ else }}
{{ with .name }}
{{ . }}{{ if $.isPointer }}
*
{{ end }}:
{{ end }}
{{ .kind }}
{{ end }}
{{ with .keys }}
{
{{ range . }}
- {{ template "schema" . }}
{{ end }}
}
{{ end }}
{{ end }}
{{ end }}
{{ define "main" }}
{{ $keys := .Site.Data.api.v310.api }}