From e2777a526df41b65df89640b2de7870ff9c9a135 Mon Sep 17 00:00:00 2001 From: baude Date: Wed, 22 May 2019 10:05:49 -0500 Subject: document nullable types the varlink doc generator was ignoring all nullable types when generating its documentation Signed-off-by: baude --- docs/varlink/apidoc.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs') diff --git a/docs/varlink/apidoc.go b/docs/varlink/apidoc.go index 7f1d60bc8..884ce54fe 100644 --- a/docs/varlink/apidoc.go +++ b/docs/varlink/apidoc.go @@ -44,6 +44,8 @@ func typeToString(input *idl.Type) string { return "map[string]" case idl.TypeInt: return "int" + case idl.TypeMaybe: + return fmt.Sprintf("?%s", typeToString(input.ElementType)) } return "" } -- cgit v1.2.3-54-g00ecf