[pve-devel] [PATCH pve-common 6/6] PodParser: use generate_typetext
Wolfgang Bumiller
w.bumiller at proxmox.com
Tue Sep 22 13:45:44 CEST 2015
---
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
More information about the pve-devel
mailing list