ballerina-lang icon indicating copy to clipboard operation
ballerina-lang copied to clipboard

[Bug]: Incorrect `category` for table type `keyConstraint` when generating api-docs

Open Thushara-Piyasekara opened this issue 1 year ago • 0 comments

Description

When generating the api-docs using bal doc command the generated api-docs identifies the category of the keyConstraint of Table type as UNKNOWN.

Following is the code used to produce the api-docs,

image

Following is the api-docs snippet related to the issue,

image

Steps to Reproduce

Run the bal doc command for following code,

type Student record {|
    readonly string firstName;
    string lastName;
    int age;
|};

public type TableTypeWithKey table<Student> key(firstName);

Affected Version(s)

Ballerina 2201.8.4 (Swan Lake Update 8) Ballerina 2201.9.0 SNAPSHOT (Swan Lake Update 9)

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

Thushara-Piyasekara avatar Feb 16 '24 09:02 Thushara-Piyasekara