ballerina-dev-tools
ballerina-dev-tools copied to clipboard
[Bug]: Incorrect document generated for a record with multiple included records
Description
When we have included multiple private records in another record and call bal doc
to generate the document, the generated document has two rest parameter types which are inferred from the private included records. But there should be only one rest parameter.
Steps to Reproduce
Sample Ballerina code:
type Record1 record {
int a;
string b;
};
type Record2 record {
boolean c;
string[] d;
};
public type Record record {
*Record2;
*Record1;
float e;
};
The Generated record documentation:
Affected Version(s)
Ballerina SwanLake Update 8
OS, DB, other environment details and versions
No response
Related area
-> API Docs
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response