From: Matthias Heiserer Date: Wed, 12 Oct 2022 13:23:32 +0000 (+0200) Subject: api-viewer: show min/max for values without any other format X-Git-Url: https://git.proxmox.com/?p=proxmox-widget-toolkit.git;a=commitdiff_plain;h=28a000898f0621b1481bb1a89c6e18970df89295 api-viewer: show min/max for values without any other format Signed-off-by: Matthias Heiserer --- diff --git a/src/api-viewer/APIViewer.js b/src/api-viewer/APIViewer.js index 2b04b8c..879c9a3 100644 --- a/src/api-viewer/APIViewer.js +++ b/src/api-viewer/APIViewer.js @@ -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 ''; };