mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 04:54:22 +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}) {
|
||||
return $phash->{typetext};
|
||||
} elsif ($phash->{format_description}) {
|
||||
return "<$phash->{format_description}>";
|
||||
} elsif ($phash->{enum}) {
|
||||
return "(" . join(' | ', sort @{$phash->{enum}}) . ")";
|
||||
} elsif ($phash->{pattern}) {
|
||||
|
Loading…
Reference in New Issue
Block a user