aboutsummaryrefslogtreecommitdiff
path: root/docs/varlink
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-05-22 10:05:49 -0500
committerbaude <bbaude@redhat.com>2019-05-22 10:08:03 -0500
commite2777a526df41b65df89640b2de7870ff9c9a135 (patch)
tree6858d3f7b2339726aa58ab0ef5a32da5e62e5ac2 /docs/varlink
parente0376b9c3f9af07d9e58a04a7cd58a7c065305e3 (diff)
downloadpodman-e2777a526df41b65df89640b2de7870ff9c9a135.tar.gz
podman-e2777a526df41b65df89640b2de7870ff9c9a135.tar.bz2
podman-e2777a526df41b65df89640b2de7870ff9c9a135.zip
document nullable types
the varlink doc generator was ignoring all nullable types when generating its documentation Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'docs/varlink')
-rw-r--r--docs/varlink/apidoc.go2
1 files changed, 2 insertions, 0 deletions
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 ""
}