Skip to content

[Data Mapper] Add support for maps and tuples as inputs and output #410

Open
@kaje94

Description

@kaje94

Description:
The following examples needs to be supported by Data Mapper

Example for primitive Map as Input

map<int> ages = {
        "Tom": 23,
        "Jack": 34
};

function transform(map<int> agesMap) returns int? => agesMap["Tom"];

Example for primitive Map as output

function transform(string strValue) returns map<string> => {
        "Tom": strValue,
        "Jack": strValue
};

Support for record maps also needs to be added

Example of primitive Tuples as input

[string, int, boolean] person = ["Mike", 24, false];

function transform([string, int, boolean] personVal) returns string => personVal[0];

Example of primitive Tuple as output

function transform(string strVal) returns  [string, int, boolean] => [strVal, 20, false];

Support for record Tuple also needs to be added

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions