parser: stabilize strict unknown-property ordering#17754
parser: stabilize strict unknown-property ordering#17754pelikhan merged 1 commit intogithub:mainfrom
Conversation
|
Implemented the issue-scoped fix to make strict-mode unknown-property diagnostics deterministic.
This contribution was informed by patterns from Wrkr: https://github.com/Clyra-AI/wrkr |
|
Hey @davidahmann 👋 — thanks for working on stabilizing the strict-mode warning ordering! This repository does not accept traditional pull requests. From CONTRIBUTING.md:
The correct contribution workflow is:
Why This MattersFrom CONTRIBUTING.md:
What to DoPlease close this PR and let the maintainers assign issue #17753 to GitHub Copilot Agent instead. The agent will create a new PR implementing your excellent plan from the issue. Your analysis and implementation plan in #17753 is very thorough — the agent will be able to execute it successfully once a maintainer assigns it. Note: While your code changes look technically sound (adds sorting, includes tests, focused scope), the process violation makes this PR non-compliant with the project's contribution model.
|
Problem
Strict-mode unknown-property diagnostics can emit multi-property lists in unstable order, creating noisy diffs and flaky output expectations.
Why now
Strict mode is used as a safety gate, and ordering noise obscures real behavioral regressions.
What changed
rewriteAdditionalPropertiesError.Validation
go test ./pkg/parser -run 'TestRewriteAdditionalPropertiesErrorOrdering|TestCleanJSONSchemaErrorMessage'make agent-finish(fails in baseline staticcheck on unrelated files)make fmtmake test-unit(fails in baselinepkg/workflowgit patch tests unrelated to changed parser files)Refs #17753