]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
api-viewer: show min/max for values without any other format
authorMatthias Heiserer <m.heiserer@proxmox.com>
Wed, 12 Oct 2022 13:23:32 +0000 (15:23 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Nov 2022 19:35:22 +0000 (20:35 +0100)
Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
src/api-viewer/APIViewer.js

index 2b04b8caf822ecb21e3c75ff2744410a16e57eea..879c9a30457d570c785a56988bc7e7fb36368e0e 100644 (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 '';
     };