mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 13:44:54 +00:00
schema_get_type_text: return format_description if available
This commit is contained in:
parent
825247bdb2
commit
457c3fcb1e
@ -104,6 +104,8 @@ sub schema_get_type_text {
|
|||||||
|
|
||||||
if ($phash->{typetext}) {
|
if ($phash->{typetext}) {
|
||||||
return $phash->{typetext};
|
return $phash->{typetext};
|
||||||
|
} elsif ($phash->{format_description}) {
|
||||||
|
return "<$phash->{format_description}>";
|
||||||
} elsif ($phash->{enum}) {
|
} elsif ($phash->{enum}) {
|
||||||
return "(" . join(' | ', sort @{$phash->{enum}}) . ")";
|
return "(" . join(' | ', sort @{$phash->{enum}}) . ")";
|
||||||
} elsif ($phash->{pattern}) {
|
} elsif ($phash->{pattern}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user