Fix EnvVar parsing of settings scheme with 'oneOf'. (#12948)

This commit is contained in:
RoboMagus
2022-06-26 16:16:44 +02:00
committed by GitHub
parent 05309db92b
commit 402081e39d
+1 -1
View File
@@ -390,7 +390,7 @@ function applyEnvironmentVariables(settings: Partial<Settings>): 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);