--- src/PVE/PodParser.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/PVE/PodParser.pm b/src/PVE/PodParser.pm index 7e31e19..3cb3c56 100644 --- a/src/PVE/PodParser.pm +++ b/src/PVE/PodParser.pm @@ -61,6 +61,11 @@ sub schema_get_type_text { } elsif (defined($phash->{maximum})) { return "$phash->{type} (-N - $phash->{maximum})"; } + } elsif ($phash->{type} eq 'string') { + my $format = $phash->{format}; + if ($format && ref($format) eq 'HASH') { + return PVE::JSONSchema::generate_typetext($format); + } } my $type = $phash->{type} || 'string'; -- 2.1.4
_______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel