[Fix #1163] Allow inline arrays in for.in property#1170
Conversation
…property The for.in property now accepts either a runtime expression (string) or an inline array of objects, making the schema more flexible for cases where the collection is known at definition time. Signed-off-by: Ricardo Zanini <[email protected]>
There was a problem hiding this comment.
Pull request overview
Updates the workflow schema and documentation to let for.in accept either a string expression or an inline, definition-time array—addressing #1163’s request to hardcode collections directly in workflow definitions.
Changes:
- Updated
schema/workflow.yamlsofor.inacceptsstringorarray(withitems: { type: object }). - Updated
dsl-reference.mdto reflect the expandedfor.intype. - Added
examples/for-inline-array.yamldemonstrating inline array iteration.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| schema/workflow.yaml | Expands for.in from a single string type to a oneOf supporting string or inline array of objects. |
| dsl-reference.md | Updates the reference table row for for.in to document the new accepted types. |
| examples/for-inline-array.yaml | Adds a concrete example of using an inline array for for.in. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
|
Regarding the suggestion to use The plain The |
Summary
for.inproperty now accepts either a runtime expression (string) or an inline array of objectstype: objectas proposed in the issueChanges
schema/workflow.yaml: Changedfor.infromtype: stringtooneOfaccepting a string or an array of objectsdsl-reference.md: Updatedfor.intype documentation tostring | arrayexamples/for-inline-array.yaml: New example demonstrating inline array usageTest plan
Fixes #1163