config: treat a top-level "//" key as a comment, not an unknown field (#505)
Strict validation of top-level config fields rejects the conventional "//" comment key that plain- JSON configs use to carry notes (JSON proper has no comments). A config carrying such a key failed validation with "unknown top-level field", breaking deployments whose stored config used the convention. Validation now skips "//" when checking for unknown top-level fields, with a test. Stacked on #468 — merge that first. <!-- codesmith:footer --> --- <a href="https://app.blacksmith.sh/yc-software/codesmith/qm/pr/473"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v2.svg"><img alt="View with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"></picture></a> <a href="https://backend.blacksmith.sh/track/enable-autofix?expires=1789248894&installation_model_id=19911&pr_number=473&repository=yc-software%2Fqm&return_to=https%3A%2F%2Fgithub.com%2Fyc-software%2Fqm%2Fpull%2F473&signature=08709bcb4140db02e212a9fbb51c3ac68c1bca8b12ab94633cf67c4b37d110f4"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img alt="Autofix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a> <sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you need. Autofix is disabled.</sup> <!-- codesmith:autofix:disabled --> <!-- /codesmith:footer -->
R
Regan Bell committed
e5bc873fe9ec16c67152057dcfa1832d5ba94c11
Parent: beae557
Committed by GitHub <noreply@github.com>
on 8/13/2026, 10:51:04 PM