X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FPodParser.pm;h=4f2868a0f6f3e427cae85bf0a93696298deb4c4b;hp=febcfd28349c5562448c6ce0f382801d6764c92b;hb=457c3fcb1e30d9e465cbaff9ea857d52a4a95e3c;hpb=2ec536145633455d5041e17231603196f0ef163a diff --git a/src/PVE/PodParser.pm b/src/PVE/PodParser.pm index febcfd2..4f2868a 100644 --- a/src/PVE/PodParser.pm +++ b/src/PVE/PodParser.pm @@ -50,6 +50,7 @@ sub generate_typetext { my (@optional, @required); foreach my $key (sort keys %$schema) { my $entry = $schema->{$key}; + next if $entry->{alias}; next if !$entry->{format_description} && !$entry->{typetext} && !$entry->{enum} && @@ -103,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}) {