]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/PodParser.pm
schema_get_type_text: return format_description if available
[pve-common.git] / src / PVE / PodParser.pm
index 116cc2564ce10265553dd9977914891718771664..4f2868a0f6f3e427cae85bf0a93696298deb4c4b 100644 (file)
@@ -104,6 +104,8 @@ sub schema_get_type_text {
 
     if ($phash->{typetext}) {
        return $phash->{typetext};
+    } elsif ($phash->{format_description}) {
+       return "<$phash->{format_description}>";
     } elsif ($phash->{enum}) {
        return "(" . join(' | ', sort @{$phash->{enum}}) . ")";
     } elsif ($phash->{pattern}) {