Skip to content

Commit

Permalink
fix(config-validation): allow top level objects in onboardingConfig (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins authored Jan 11, 2024
1 parent 0b3b56a commit 8cf2d21
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 8cf2d21

Please sign in to comment.