-
Notifications
You must be signed in to change notification settings - Fork 754
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]: Resource access that are not ambiguous are reported as ambiguous access #40606
Comments
+1 |
@rdulmina for the salesforce connector we are having the same issue where we cannot use the following two resource methods due to the mentioned issue. @display {label: "Get Record by ID"}
isolated resource function get services/data/["v59.0"]/sobjects/[string sobject]/[string id](typedesc<record {}> returnType = <>)
returns returnType|error = @java:Method {
'class: "io.ballerinax.salesforce.ReadOperationExecutor",
name: "getRecordById"
} external;
@display {label: "Get sObject Description"}
isolated resource function get services/data/["v59.0"]/sobjects/[string sobjectName]/describe()
returns SObjectMetaData|error {
return check self.salesforceClient->/services/data/["v59.0"]/sobjects/[sobjectName]/describe.get();
} Can we get this fixed with a 2201.8.x patch release? |
@hasithaa shall we prioritize this |
There are some limitations with resource path syntax, hence not all possible syntax variations are supported. We had a chat with @shafreenAnfar, @NipunaRanasinghe and decided to go ahead with remote method syntax when we have such limitations for Ballerina libraries. |
@gimantha any update on this? We are waiting on this fix to release the OpenAI Assistants connector. |
Description
If we have above client declaration we can allow
sampleClient->/metadata;
which is not ambiguous at compile time.Currently this gives
error - client resource access action is not yet supported when the corresponding resource method is ambiguous
Steps to Reproduce
No response
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: