Skip to content

Commit

Permalink
fix(config-validation): allow top level objects in onboardingConfig (r…
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins authored and zT-1337 committed Jan 24, 2024
1 parent a12fb3c commit 2c37734
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/config/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}"`,
Expand Down

0 comments on commit 2c37734

Please sign in to comment.