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
Currently the generated docstrings for at least Swift do not contain the descriptions available for fields, though these are included in the generated Java & TypeScript code. Event level docstrings are generated in each case using the relevant descriptions.
It would be great if the generated docstrings could include all the documentation information available from the plan.
Given:
{
"createdAt": "2024-12-09T17:00:00.000Z",
"creationType": "Data catalog",
"description": "",
"id": "redacted",
"name": "Test",
"rules": {
"events": [
{
"description": "Records that the user added an item to their bag",
"eventType": "track",
"name": "action-add-to-bag",
"rules": {
"$defs": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "",
"properties": {
"properties": {
"additionalProperties": false,
"properties": {
"article_id": {
"description": "Identifier for the article displayed on the page.",
"pattern": "^\\d{4}",
"type": ["string"]
},
"sku": {
"description": "The SKU of the selected size being added to bag.",
"pattern": "^\\d{5}",
"type": ["string"]
}
},
"required": ["article_id", "sku"],
"type": "object"
}
},
"type": "object"
}
}
]
},
"updatedAt": "2024-12-21T00:18:00.00Z",
"version": 13,
"workspaceId": "redacted"
}
Actual:
/// Records that the user added an item to their bag
staticfunc actionAddToBag(articleId:String, sku:String, options:RSOption?=nil){varproperties=[String: Any]()properties["article_id"]= articleId;
properties["sku"]= sku;
// ...
}
Desired (approximate -- note I am not a Swift expert):
/**
Records that the user added an item to their bag
- Parameters:
- articleId: Identifier for the article displayed on the page.
- sku: The SKU of the selected size being added to bag.
*/
staticfunc actionAddToBag(articleId:String, sku:String, options:RSOption?=nil){varproperties=[String: Any]()properties["article_id"]= articleId;
properties["sku"]= sku;
// ...
}
It would also be great if the docstring could be present on all overloads, not just the one which takes options.
The text was updated successfully, but these errors were encountered:
Currently the generated docstrings for at least Swift do not contain the descriptions available for fields, though these are included in the generated Java & TypeScript code. Event level docstrings are generated in each case using the relevant descriptions.
It would be great if the generated docstrings could include all the documentation information available from the plan.
Given:
Actual:
Desired (approximate -- note I am not a Swift expert):
It would also be great if the docstring could be present on all overloads, not just the one which takes
options
.The text was updated successfully, but these errors were encountered: