schema_get_type_text: return format_description if available

This commit is contained in:
Dietmar Maurer 2016-05-07 10:57:14 +02:00
parent 825247bdb2
commit 457c3fcb1e

View File

@ -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}) {