-
Notifications
You must be signed in to change notification settings - Fork 435
Labels
kind/bugFeature doesn't work as expected.Feature doesn't work as expected.
Description
Is your feature request related to a problem? Please describe it.
Current if we define proto with a map like
message UserPreferences {
map<string, string> preference = 10;
}
the generated grpc.swift Will contain:
extension UserPreferences.PreferencesEntry: GRPCProtobufPayload {}
which resulted in an error:

'PreferencesEntry' is not a member type of 'UserPreferences'
in the proto3 spec map can be used.
Describe the solution you'd like
Hopefully we can have map supported.
Describe alternatives you've considered
In order to work around this we had to refactor the struct to use repeated:
message UserPreferences {
repeated UserPreference preferences = 1;
}
message UserPreference {
string key = 10;
string value = 20;
}
but this isnt really ideal, hopefully we can have map supported.
Additional context
Metadata
Metadata
Assignees
Labels
kind/bugFeature doesn't work as expected.Feature doesn't work as expected.