-
Notifications
You must be signed in to change notification settings - Fork 756
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
[Bug]: Cannot Create Enum Values with Assigned Values in Native Code #38846
Comments
@warunalakshitha Do we have any update on this? Can we have this before the next patch release? |
@ThisaruGuruge We will check and update soon. |
The fix will be provided with update 4 release. What we will be providing is this. You can call enum Weekday {
SUNDAY = "Sunday",
MONDAY = "Monday"
} we need to iterate through enum |
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
We have this bug in GraphQL package, where we cannot pass the correct enum value into a resource method parameter, when there's a value assigned to an enum member.
In the native code, I tried to access the union type related to the enum, but it only contains the assigned values, not the member type names. Without this information, the GraphQL bug cannot be fixed. Therefore, I think we should consider this as a bug.
Steps to Reproduce
No response
Affected Version(s)
Ballerina SwanLake Update 2 (2201.2.0)
This also affects the other versions as well.
OS, DB, other environment details and versions
No response
Related area
-> Runtime
Related issue(s) (optional)
#37115
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: