javascript and int64 as map key
What language does this apply to? javascript
Describe the problem you are trying to solve.
With an int64 message field, one could annotate it with the option [jstype=JS_STRING], but what to do with an int64 map key?
Describe the solution you'd like
Support for [jstype=JS_STRING] option with map key/value(or it's already there, but with different syntax?)
Describe alternatives you've considered
Additional context I'm using protoc 3.6.1, with proto2 syntax
We're internally discussing the concept of MapOptions that would be used to facilitate this. I'll keep you posted!
We're internally discussing the concept of MapOptions that would be used to facilitate this. I'll keep you posted!
looking forward to it!
Is there any solution?
This is a limitation of the current API. We're thinking of introducing an abstraction for 64 bit integers to deal with this.