From 8cf2d21082a8fe40590ec3f48b073891cb1c1a30 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Thu, 11 Jan 2024 17:18:24 +0100 Subject: [PATCH] fix(config-validation): allow top level objects in onboardingConfig (#26595) --- lib/config/validation.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/config/validation.ts b/lib/config/validation.ts index dbcae32e7c..34753754e0 100644 --- a/lib/config/validation.ts +++ b/lib/config/validation.ts @@ -129,7 +129,11 @@ export async function validateConfig( }); continue; } - if (parentPath && topLevelObjects.includes(key)) { + if ( + parentPath && + parentPath !== 'onboardingConfig' && + topLevelObjects.includes(key) + ) { errors.push({ topic: 'Configuration Error', message: `The "${key}" object can only be configured at the top level of a config but was found inside "${parentPath}"`, -- GitLab