api-viewer: show min/max for values without any other format

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
This commit is contained in:
Matthias Heiserer 2022-10-12 15:23:32 +02:00 committed by Thomas Lamprecht
parent 7148e22691
commit 28a000898f

View File

@ -119,6 +119,9 @@ Ext.onReady(function() {
if (type_fallback && pdef.type) {
return `<${pdef.type}>`;
}
if (pdef.minimum || pdef.maximum) {
return `${pdef.minimum || 'N'} - ${pdef.maximum || 'N'}`;
}
return '';
};