From ff3351b15e06e15d4ad313d0562145d708c3465a Mon Sep 17 00:00:00 2001 From: Ash Keel Date: Wed, 22 Feb 2023 11:34:03 +0100 Subject: [PATCH] enum support --- layouts/api/list.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/layouts/api/list.html b/layouts/api/list.html index 24caf4d..abf642b 100644 --- a/layouts/api/list.html +++ b/layouts/api/list.html @@ -32,7 +32,13 @@ {{ end }}: {{ end }} - {{ .kind }} + {{ if (eq $.kind "enum") }} + enum ( + {{ with $.enumValues }}{{ delimit . " | " }}{{ end }} + ) + {{ else }} + {{ .kind }} + {{ end }} {{ end }} {{ with .keys }} {