Add integration tests for schema restriction enforcement in included files#10412
Closed
Add integration tests for schema restriction enforcement in included files#10412
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
- Test engine.command rejected in included files but allowed in main workflows - Test 'on' field required in main workflows but rejected in included files - Test MCP configuration in mcp-servers allowed in both schemas - Test valid included files with all 15 allowed properties - Test valid included files with subset of allowed properties - All new tests pass successfully Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add integration tests for schema restriction enforcement
Add integration tests for schema restriction enforcement in included files
Jan 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Schema restrictions exist between included workflow files and main workflows, but lacked test coverage to prevent regressions.
Changes
Added
TestSchemaRestrictionEnforcementtopkg/parser/schema_test.gowith 6 subtests:engine.commandrestriction: Verifies rejected in included files, allowed in main workflowsonfield requirement: Verifies required in main workflows, rejected in included filescommand/args/envallowed in both schemas viamcp-serverspropertyExample
Tests follow existing table-driven patterns and validate both successful cases and expected error messages.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.