Skip to content

Support lists in expressions #4189

Description

@TomasEng

Our expression language needs a list function that creates a list from its arguments.

Example:

["list", 1, 2, 3]

returns

[1, 2, 3]

In addition, list should be a valid return type of other expressions.

Acceptance criteria

  • There is a list function that returns a list in both frontend and backend
  • Source functions (like dataModel) that refer to a list return that list
  • Existing functions treat lists the same way they treat other invalid values
  • The JSON Schema used by the expression editor in Studio is updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/logicrelated to logic/dynamics/expressionssquad/dataIssues that belongs to the named squad.

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions