-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsondata:parseAsType()
return a error when the given type is readonly
#7253
jsondata:parseAsType()
return a error when the given type is readonly
#7253
Comments
This issue is a blocker for the module http , jsondata APIs migration in u11. ballerina-platform/module-ballerina-http#2168 |
The simplest version of the error
|
We received an error for the below scenario as well type DDPerson record {|
readonly int id;
|};
DDPerson rs = check jsondata:parseAsType({id: 10});
|
This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now. |
Description:
The below sample returns an error while parsing using jsondata:parserAsType(), this error occurred when given data type has data type with readonly ,
Steps to reproduce:
Run the above given sample
Affected Versions:
2201.10.1
OS, DB, other environment details and versions:
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):
The text was updated successfully, but these errors were encountered: