From 28a000898f0621b1481bb1a89c6e18970df89295 Mon Sep 17 00:00:00 2001 From: Matthias Heiserer Date: Wed, 12 Oct 2022 15:23:32 +0200 Subject: [PATCH] api-viewer: show min/max for values without any other format Signed-off-by: Matthias Heiserer --- 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 ''; };