Look at "groupId"
message Topic {
string groupId = 1;
Message message = 2;
}
-->>
proto.dawn.Topic.toObject = function(includeInstance, msg) {
var f, obj = {
groupid: jspb.Message.getFieldWithDefault(msg, 1, ""),
message: (f = msg.getMessage()) && proto.dawn.Message.toObject(includeInstance, f)
};
this will result in "groupId" always "groupid", being ugly and bad coding practice.
Sorry, the spec of toObject is not defined yet. We would like to keep the current implementation as is for now.
Current implementation is ugly and don't follow camel specification, so hard to accept by frontend developer.
I agree. It makes little sense that it does not respect things as defined in the proto.
Most helpful comment
Current implementation is ugly and don't follow camel specification, so hard to accept by frontend developer.