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 generating data mappings in Ballerina, the version field is incorrectly treated as a reserved keyword. Instead of generating the mapping as version: patient.version, the system produces an incorrect mapping like 'version: patient.'version, which is syntactically invalid. This causes the code to fail during execution or compilation.
Steps to Reproduce
1. Define Ballerina code
public function mapPatientToUsCore(Patient patient) returns Patient => {
};
public type Patient record {
string patientType;
string patientId;
string version;
};
2. Generate data mappings using the defined structure.
3. Observe that the generated mapping incorrectly escapes the version field as 'version: patient.'version instead of the correct format version: patient.version.
public function mapPatientToUsCore(Patient patient) returns Patient => {
patientType: patient.patientType,
patientId: patient.patientId,
'version: patient.'version
};
Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Compilation
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:
Description
When generating data mappings in Ballerina, the
version
field is incorrectly treated as a reserved keyword. Instead of generating the mapping asversion: patient.version
, the system produces an incorrect mapping like'version: patient.'version
, which is syntactically invalid. This causes the code to fail during execution or compilation.Steps to Reproduce
1. Define Ballerina code
2. Generate data mappings using the defined structure.
3. Observe that the generated mapping incorrectly escapes the version field as
'version: patient.'version
instead of the correct formatversion: patient.version
.Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Compilation
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: