Skip to content

In property in for task should allow hardcoded arrays #1163

Description

@fjtirado

Currently, in property in for task is expected to be a runtime expression that returns an array of objects to be used by the for loop.
It would be nice to allow the writer of the workflow definition to write the array there by himself.
The reason is currently an string is because in that particular spot it is assumed that specifying the whole array is not really useful in 99% of the cases, and that`s right.
But from schema point of view, it is more ubicuos to have (and it does not hurt in any case)

in:
    oneOf:
           - "type": "array",
              "items": {
                 "type": "object"
                }
          - $ref: '#/$defs/runtimeExpression'

rather than

  in:
              type: string
              title: ForIn
              description: A runtime expression used to get the collection to enumerate.

Metadata

Metadata

Labels

area: specChanges in the Specificationchange: featureNew feature or request. Impacts in a minor version changespec: 1.0.0

Fields

No fields configured for Feature.

Projects

Status
Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions