Repository navigation
Expand JSON Schema canaries and correct AdditionalItems guidance - #16928
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
🔒 mcpg Read-Only Stress — defaultSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE No write leaked through mcpg in this run. Part B is
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified in the validation regression coverage and array-specific error guidance changes.
No open issues 🎉
What changed in this PR
Strengthens JSON Schema validation regression coverage for gateway configuration and corrects misleading array-error guidance, addressing the focused improvements in #16847. The dependency remains pinned to v6.0.3.
Changes:
- Add real-validation canaries for six additional error kinds and nested-array instance locations.
- Stop error traversal at the expected kind, including errors with nested causes.
- Replace object-field advice for
AdditionalItemswith array-specific guidance and regression assertions.
| File | Description |
|---|---|
internal/config/validation_schema.go |
Recommend removing excess array entries for AdditionalItems errors. |
internal/config/validation_schema_error_format_test.go |
Verify array guidance appears and object-field advice is absent. |
internal/config/jsonschema_upgrade_canary_test.go |
Expand error-kind coverage and pin nested-array locations across schema drafts. |
Review effort: Balanced (adaptive)
Real-validation canaries left several formatter assumptions and v6.0.3 instance-location fixes unprotected.
AdditionalItemsalso incorrectly suggested checking object field names.DependentRequired,PropertyNames,Contains,MinContains,UniqueItems, andAdditionalItems./value/1/1for draft-2020-12itemsand draft-07additionalItems.The dependency remains pinned to v6.0.3.