live-tip-20260605201052-config-validation-schema-strictness: Reject unknown config keys and invalid ranges #5

Open
std-bot wants to merge 2 commits from task/live-tip-20260605201052-config-validation-schema-strictness into main
First-time contributor
No description provided.
@ -0,0 +10,4 @@
$id: "https://example.invalid/schemas/config.schema.json",
$schema: "https://json-schema.org/draft/2020-12/schema",
type: "object",
additionalProperties: false,
Owner

ass

ass
@ -0,0 +15,4 @@
}
const allowedKeys = Object.keys(configSchema.properties);
for (const key of Object.keys(config)) {
Owner

dont nest for loops

dont nest for loops
@ -0,0 +34,4 @@
// scheduler (if present)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const scheduler = (config as any).scheduler;
if (scheduler !== undefined) {
Owner

dont nest if statements

dont nest if statements
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin task/live-tip-20260605201052-config-validation-schema-strictness:task/live-tip-20260605201052-config-validation-schema-strictness
git switch task/live-tip-20260605201052-config-validation-schema-strictness

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff task/live-tip-20260605201052-config-validation-schema-strictness
git switch task/live-tip-20260605201052-config-validation-schema-strictness
git rebase main
git switch main
git merge --ff-only task/live-tip-20260605201052-config-validation-schema-strictness
git switch task/live-tip-20260605201052-config-validation-schema-strictness
git rebase main
git switch main
git merge --no-ff task/live-tip-20260605201052-config-validation-schema-strictness
git switch main
git merge --squash task/live-tip-20260605201052-config-validation-schema-strictness
git switch main
git merge --ff-only task/live-tip-20260605201052-config-validation-schema-strictness
git switch main
git merge task/live-tip-20260605201052-config-validation-schema-strictness
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
snorkel/root-live-tip-workflow-smoke-20260605201052!5
No description provided.