{{ define "schema" }} {{ with .element }} {{ with $.name }}
{{ . }}{{ ": " }}
{{ end }} {{ if (eq $.kind "array") }} arrayOf [ {{ template "schema" . }} ] {{ end }} {{ if (eq $.kind "dictionary") }} dictionary
< {{ $.key.name }}, {{ template "schema" . }}>
{{ end }} {{ 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 }}