{{ define "schema" }} {{ 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 . }} {{ end }} } {{ end }} {{ end }}
{{ end }} {{ define "main" }} {{ $keys := .Site.Data.api.v310.api }}
{{ .Content }}
{{ range $key, $spec := $keys }}

{{ $key }} {{ range .tags }} {{ . }} {{ end }}

{{ with .description }}
{{ . }}
{{ end }} {{ with .schema }}
{{ template "schema" . }}
{{ end }}
{{ end }}
{{ end }}