We can use both of the below approaches to add doc-comments to a Ballerina record.
Which is the recommended?
approach 1
# Provides extracted tools and service URL from the OpenAPI specification.
#
# + serviceUrl - Extracted service URL from the OpenAPI specification if there is any
# + tools - Extracted Http tools from the OpenAPI specification
public type HttpApiSpecification record {|
string serviceUrl?;
HttpTool[] tools;
|};
approach 2
# Provides extracted tools and service URL from the OpenAPI
public type HttpApiSpecification record {|
# Extracted service URL from the OpenAPI specification if there is any
string serviceUrl?;
# Extracted Http tools from the OpenAPI
HttpTool[] tools;
|};