Skip to content

DEV: Warn when top-level config keys are unrecognized#37

Closed
ducks wants to merge 1 commit into
mainfrom
dev/warn-unknown-config-keys
Closed

DEV: Warn when top-level config keys are unrecognized#37
ducks wants to merge 1 commit into
mainfrom
dev/warn-unknown-config-keys

Conversation

@ducks
Copy link
Copy Markdown

@ducks ducks commented May 13, 2026

Previously, any top-level key not consumed by pups or the discourse_docker launcher was silently ignored. This made typos and misplaced keys invisible. A hook stanza at the wrong indent level, or 'befor_code' with a typo, would parse cleanly and produce nothing.

Log a warning at boot time for any top-level key that's outside the known set. Behavior is unchanged: unknown keys are still ignored, just no longer silently.

Keys explicitly passed in the 'ignored' argument don't trigger the warning, since the caller has signaled intent.

Previously, any top-level key not consumed by pups or the
discourse_docker launcher was silently ignored. This made typos and
misplaced keys invisible. A hook stanza at the wrong indent level,
or 'befor_code' with a typo, would parse cleanly and produce nothing.

Log a warning at boot time for any top-level key that's outside the
known set. Behavior is unchanged: unknown keys are still ignored, just
no longer silently.

Keys explicitly passed in the 'ignored' argument don't trigger the
warning, since the caller has signaled intent.
@ducks ducks requested a review from davidtaylorhq May 13, 2026 18:56
@SamSaffron
Copy link
Copy Markdown
Member

this is weird though, this is not a pups responsibility, instead it should accept a schema and warn on that ...

@ducks ducks closed this May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants