release: publish v2.0.35 settings validation fix

This commit is contained in:
Sucukdeluxe
2026-08-13 22:50:10 +02:00
parent 4fe951de78
commit 4d5161bedd
5 changed files with 43 additions and 4 deletions
+5 -1
View File
@@ -30,7 +30,11 @@ function validateJsonValue(value: unknown, depth = 0): void {
}
const entries = Object.entries(value as Record<string, unknown>);
if (entries.length > 10_000) invalid();
entries.forEach(([, entry]) => validateJsonValue(entry, depth + 1));
entries.forEach(([, entry]) => {
if (entry !== undefined) {
validateJsonValue(entry, depth + 1);
}
});
}
function validateTopLevelType(value: unknown, expected: unknown): void {