[pve-devel] [PATCH widget-toolkit 2/2] show min/max for values without any other format

Matthias Heiserer m.heiserer at proxmox.com
Wed Oct 12 15:23:32 CEST 2022


Signed-off-by: Matthias Heiserer <m.heiserer at proxmox.com>
---

Optional followup

 src/api-viewer/APIViewer.js | 3 +++
 1 file changed, 3 insertions(+)

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 '';
     };
 
-- 
2.30.2






More information about the pve-devel mailing list