You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The rest parameter is not documented for inclusive record definition:
publictypeOpenRecordrecord {
int a;
string b;
};
The rest parameter is shown when we have a exclusive record definition with a rest parameter. But there are inconsistencies when the rest field is another type
We should decide on a proper way to document the rest field for a record type. Having anydata... does not make much sense for a included record. Having anydata... Rest Field is fine but can we do better?
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:
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
The text was updated successfully, but these errors were encountered: