Repository navigation
Add missing settings to JSON schema - #2451
Chris Blank (ChrisBlankDe) wants to merge 6 commits into
Conversation
Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The root schema reference rejects valid partial incremental-build overrides and causes validation warnings even after defaults are merged, requiring a partial-override schema and a regression test.
1 open issue
What changed in this PR
This PR expands AL-Go’s JSON schema to recognize nine existing, documented settings, improving validation and editor support without adding runtime behavior.
Changes:
- Add definitions for analyzer flags, CI/CD branch filters, BcContainerHelper version, and trusted NuGet feeds.
- Define conditional settings, workflow scheduling, and string-or-array workflow concurrency.
- Document the expanded schema coverage in release notes.
| File | Description |
|---|---|
| RELEASENOTES.md | Lists the newly recognized settings. |
| Actions/.Modules/settings.schema.json | Adds setting definitions, nested validation, and a root schema reference for conditional blocks. |
Review effort: Balanced
Co-authored-by: Copilot App <[email protected]>
| "settings": { | ||
| "description": "The settings to apply when all specified conditions are met." | ||
| } |
There was a problem hiding this comment.
I’d suggest referencing the root schema so the conditional settings include its properties:
| "settings": { | |
| "description": "The settings to apply when all specified conditions are met." | |
| } | |
| "settings": { | |
| "description": "The settings to apply when all specified conditions are met.", | |
| "$ref": "#", | |
| "not": { | |
| "anyOf": [ | |
| { "required": ["ConditionalSettings"], "$comment": "Conditional settings can not contain conditional settings." } | |
| ] | |
| } | |
| } |
There was a problem hiding this comment.
I had it set up something like this at first, too, but I reverted it. The problem here is partial overwrites. In the base objects, various fields are marked as mandatory, but they don't have to be specified when an override is applied.
If you wanted to correct the schema to address this, you'd have to completely redesign it, and it wouldn't be so simple anymore.
See also Copilots comment on this: #2451 (comment)
There was a problem hiding this comment.
I think the inherited required properties would be fine, but they could introduce breaking changes for repositories that already use partial conditional settings.

❔What, Why & How
Several supported settings were documented but absent from the JSON schema. Add definitions for the analyzer flags, CI/CD branch filters, BcContainerHelper version, trusted NuGet feeds, conditional settings, workflow schedule, and workflow concurrency. Conditional blocks reuse the root settings schema; concurrency accepts a YAML line or an array of lines.
Related to issue: N/A
✅ Checklist
The settings are already documented. No new tests or telemetry were added.