diff options
author | baude <bbaude@redhat.com> | 2019-05-22 10:05:49 -0500 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-05-22 10:08:03 -0500 |
commit | e2777a526df41b65df89640b2de7870ff9c9a135 (patch) | |
tree | 6858d3f7b2339726aa58ab0ef5a32da5e62e5ac2 /docs | |
parent | e0376b9c3f9af07d9e58a04a7cd58a7c065305e3 (diff) | |
download | podman-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')
-rw-r--r-- | docs/varlink/apidoc.go | 2 |
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 "" } |