wso2 / ballerina-vscode

To keep Ballerina VSCode plugin related issues, discussions, etc.
Apache License 2.0
41 stars 20 forks source link

[Data Mapper] Failed to map array items that are having recursive types #522

Closed madushajg closed 10 months ago

madushajg commented 11 months ago

Description: $Title

https://github.com/wso2/ballerina-plugin-vscode/assets/26219651/cfe59ffb-866c-442f-a630-07f449802bdb

Node that the displayed type is also undefined[].

Steps to reproduce: Sample source:

type Person record {
    string id;
    Person[] friends?;
};

type Employee record {
    string description;
    Person[] colleagues;
};

function transform(Person person) returns Employee => {};

Affected Versions: Plugin v4.4.1 Ballerina 2201.7.0