Remix.run Logo
riku_iki 7 days ago

And v1 and v2 protos didn't even have maps.

Also, why you use string as a key and not int?

Arainach 7 days ago | parent [-]

proto2 absolutely supported the map type.

riku_iki 7 days ago | parent [-]

It could be, it looks like there was some versions misalignment:

The maps syntax is only supported starting from v3.0.0. The "proto2" in the doc is referring to the syntax version, not protobuf release version. v3.0.0 supports both proto2 syntax and proto3 syntax while v2.6.1 only supports proto2 syntax. For all users, it's recommended to use v3.0.0-beta-1 instead of v2.6.1. https://stackoverflow.com/questions/50241452/using-maps-in-p...