[Fix #1186] Allow any type in for.in inline array - #1187
Merged
ricardozanini merged 1 commit intoAug 11, 2026
Conversation
…e array Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Updates the workflow schema/docs to allow for.in inline arrays to contain primitives (and other non-object values), and adds an example demonstrating primitive iteration.
Changes:
- Relax
schema/workflow.yamlso inlinefor.inarrays no longer requireitems.type: object - Update DSL reference typing for
for.infromarray<object>toarray - Add a new YAML example iterating over an inline numeric array
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| schema/workflow.yaml | Removes the object-only constraint for inline for.in array items |
| dsl-reference.md | Updates the reference typing/description to match the schema change |
| examples/for-inline-primitive-array.yaml | Adds a primitive-array iteration example for for.in |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ricardozanini
merged commit Aug 11, 2026
0ff936f
into
open-workflow-specification:main
3 checks passed
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.
Summary
type: objectconstraint from inline array items infor.in, allowing iteration over arrays of any type (strings, numbers, booleans, objects, etc.)array<object>toarrayfor-inline-primitive-array.yaml) demonstrating iteration over an inline array of numbersFixes #1186
Test plan