Skip to content

Add missing settings to JSON schema - #2451

Open
Chris Blank (ChrisBlankDe) wants to merge 6 commits into
microsoft:mainfrom
ChrisBlankDe:chrisblankde-settings-docs-schema-gap
Open

Chris Blank (ChrisBlankDe) wants to merge 6 commits into
microsoft:mainfrom
ChrisBlankDe:chrisblankde-settings-docs-schema-gap

Conversation

@ChrisBlankDe

@ChrisBlankDe Chris Blank (ChrisBlankDe) commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

❔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

  • Add tests (E2E, unit tests)
  • Update RELEASENOTES.md
  • Update documentation (e.g. for new settings or scenarios)
  • Add telemetry

The settings are already documented. No new tests or telemetry were added.

@ChrisBlankDe
Chris Blank (ChrisBlankDe) marked this pull request as ready for review November 11, 2026 13:23
@ChrisBlankDe
Chris Blank (ChrisBlankDe) requested a review from a team as a code owner November 11, 2026 13:23
Copilot AI balanced review requested due to automatic review settings November 11, 2026 13:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread Actions/.Modules/settings.schema.json Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the schema-coverage update.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Comment on lines +1124 to +1126
"settings": {
"description": "The settings to apply when all specified conditions are met."
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’d suggest referencing the root schema so the conditional settings include its properties:

Suggested change
"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." }
]
}
}

@ChrisBlankDe Chris Blank (ChrisBlankDe) Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the inherited required properties would be fine, but they could introduce breaking changes for repositories that already use partial conditional settings.

Comment thread RELEASENOTES.md Resolved

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants