Open
Description
Description
The type keyword in the ConnectCustomFieldValue
record definition within types.bal
is not escaped, leading to compilation errors. This issue occurs in the generated Ballerina code. All other type keywords escape perfectly.
Steps to Reproduce
- Clone the repo
git clone https://github.com/lasithLRI/module-ballerinax-jira.git
cd module-ballerinax-jira
-
Inspect the pre-generated client:
types.bal
file has already been generated. -
(Optional) Regenerate the client:
bal openapi flatten -i docs/spec/openapi.yaml -o docs/spec
bal openapi align -i docs/spec/flattened_openapi.yaml -o docs/spec
bal openapi -i docs/spec/aligned_ballerina_openapi.yaml -o . --mode client
- Verify the error:
Opentypes.bal,
find theConnectCustomFieldValue
record which produces:
error: invalid token 'type'
Version
Ballerina 2201.12.7 (Swan Lake Update 12)
Environment Details (with versions)
N/A