arkency / protobuf-nested-struct

Serialize primitives and deep structures (array, hash) to protobuf
4 stars 1 forks source link

Consider more possible key types #6

Open paneq opened 6 years ago

paneq commented 6 years ago

Perhaps keys could also be of all the allowed types as values?

Instead of:

message HashMapStringValue {
  map<string, Value> fields = 1;
}

we would use

message HashMapValueValue {
  map<Value, Value> fields = 1;
}

Or perhaps that could be a separate class/project?