-
Notifications
You must be signed in to change notification settings - Fork 66
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
Incorrect stub generated for message with Any type field in gRPC tool #2750
Incorrect stub generated for message with Any type field in gRPC tool #2750
Comments
IMO, the default value in the record should be changed as follows according to the public type AnyTypeArrayRequest record {|
string name = "";
'any:Any details = {typeUrl: "", value: ()};
|}; @BuddhiWathsala @daneshk WDYT |
Just thinking, if we can set default values when defining the
|
+1, That would be better. |
Yes, that approach is much cleaner. |
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. |
Closed since this task is completed in ballerina-platform/module-ballerina-grpc#739 |
Description:
Try to build the stub file for the following proto definition.
The following is the generated stub file.
There are 2 issues here.
ballerina/protobuf.types.'any
import is missing.AnyTypeRequest
record definition throws a compilation error:ERROR [sample.bal:(9:24,9:26)] incompatible types: expected 'ballerina/protobuf.types.any:1.2.0:Any', found '()'
Affected Versions:
SLGA
The text was updated successfully, but these errors were encountered: