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
Tool does not correctly handle the types from google.protobuf.wrappers.
UInt64Value
Int32Value
BoolValue
These are correctly handled when it is applied in the service definition. However, the tool does not pick it up correctly when they are defined in a message.
Generate the stub file using the bal grpc command.
Expected output:
importballerina/protobuf;
const string TESTMESSAGE2_DESC ="0A12746573744D657373616765322E70726F746F1A1E676F6F676C652F70726F746F6275662F77726170706572732E70726F746F228D030A055465737436122A0A016118012001280B321C2E676F6F676C652E70726F746F6275662E537472696E6756616C756552016112290A016218022001280B321B2E676F6F676C652E70726F746F6275662E496E74333256616C7565520162122A0A016318032001280B321C2E676F6F676C652E70726F746F6275662E55496E74333256616C756552016312290A016418042001280B321B2E676F6F676C652E70726F746F6275662E496E74363456616C7565520164122A0A016518052001280B321C2E676F6F676C652E70726F746F6275662E55496E74363456616C7565520165122A0A016618062001280B321C2E676F6F676C652E70726F746F6275662E446F75626C6556616C756552016612290A016718072001280B321B2E676F6F676C652E70726F746F6275662E466C6F617456616C756552016712280A016818082001280B321A2E676F6F676C652E70726F746F6275662E426F6F6C56616C756552016812290A016918092001280B321B2E676F6F676C652E70726F746F6275662E427974657356616C7565520169620670726F746F33";
@protobuf:Descriptor {value:TESTMESSAGE2_DESC}
publictypeTest6record {|string a ="";
int b =0;
int c =0;
int d =0;
int e =0;
float f =0;
float g =0;
boolean h =false;
byte[] i = [];
|};
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.
- Reason/EngineeringMistake - The issue occurred due to a mistake made in the past. - Reason/Regression - The issue has introduced a regression. - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components. - Reason/Complex - Issue occurred due to complex scenario. - Reason/Invalid - Issue is invalid. - Reason/Other - None of the above cases.
Description:
Tool does not correctly handle the types from
google.protobuf.wrappers
.These are correctly handled when it is applied in the service definition. However, the tool does not pick it up correctly when they are defined in a message.
Steps to reproduce:
Generate the stub file using the
bal grpc
command.Expected output:
Actual output:
Affected Versions:
Ballerina 2201.6.0
Related Issues (optional):
#4544
The text was updated successfully, but these errors were encountered: