longCamelCase property definitions end up with improperly cased setters/getters in JavaScript Output
4Z4T4R opened this issue · 1 comments
4Z4T4R commented
package events;
message Event
{
string eventType = 1;
}
Becomes...
const eventMsgs = require("./events_pb")
let message = new eventMsgs.Event()
message.setEventType("Birthday")
// Throws message.setEventType is not a function
Looking at the sources in the ./events_pb.js
I see the method is translated to setEventtype(...)
Is that intentional? I suppose not. It makes for some confusion when managing with longFunkyNames
Any help is appreciated.
4Z4T4R commented
nvm... I see that per the protobuf style guide we are agree to use inch_worm
attribute definitions. FINE.