From 402081e39d0d02fa25173ec4bdf8de8cf7a9e88c Mon Sep 17 00:00:00 2001 From: RoboMagus <68224306+RoboMagus@users.noreply.github.com> Date: Sun, 26 Jun 2022 16:16:44 +0200 Subject: [PATCH] Fix EnvVar parsing of settings scheme with 'oneOf'. (#12948) --- lib/util/settings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/settings.ts b/lib/util/settings.ts index 1d69bb819..38ce5b272 100644 --- a/lib/util/settings.ts +++ b/lib/util/settings.ts @@ -390,7 +390,7 @@ function applyEnvironmentVariables(settings: Partial): void { if (typeof obj[key] === 'object' && obj[key]) { const newPath = [...path]; - if (key !== 'properties') { + if (key !== 'properties' && key !== 'oneOf' && !Number.isInteger(Number(key))) { newPath.push(key); } iterate(obj[key], newPath);