diff --git a/bin/kong-dashboard.js b/bin/kong-dashboard.js index 1c4289b..380d9ff 100755 --- a/bin/kong-dashboard.js +++ b/bin/kong-dashboard.js @@ -159,12 +159,12 @@ function start(argv) { process.exit(1); }).then((version) => { if (semver.lt(version, '0.9.0')) { - terminal.error("This version of Kong dashboard doesn't support Kong v0.9 and lower."); - process.exit(1); + terminal.error("This version of Kong dashboard doesn't support Kong v0.9 and lower.current is -->"+version); + // process.exit(1); } if (semver.gte(version, '2.0.0')) { - terminal.error("This version of Kong dashboard doesn't support Kong v2.0 and higher."); - process.exit(1); + terminal.error("This version of Kong dashboard doesn't support Kong v2.0 and higher.current is -->"+version); + // process.exit(1); } terminal.success("Connected to Kong on " + argv.kongUrl + "."); terminal.info("Kong version is " + version); diff --git a/lib/kong-schemas.js b/lib/kong-schemas.js index 134ae52..913629b 100644 --- a/lib/kong-schemas.js +++ b/lib/kong-schemas.js @@ -2989,7 +2989,13 @@ var schemas = { var Schema = { get: function(version) { - return schemas[semver.major(version) + '.' + semver.minor(version)]; + let schema = schemas[semver.major(version) + '.' + semver.minor(version)]; + if(!schema){ + for(let key in schemas){ + schema=schemas[key] + } + } + return schema; } };