Skip to content

map[string][]string is converted to map<string, string> #106

Description

@t0k4rt

Hello,
I've got an issue with theb generated protobuf.
My function signature is
FindApp(ctx context.Context, criteria map[string][]string) ([]App, error)

The generated rpc parameter is

message appservice_FindAppRequest {
	map<string, string> arg1 = 1;
}

Is it normal ?
I tried to convert map[string][]string to a proper type like that:

type CriteriaList []string
type SearchCriteria map[string]CriteriaList

But the generated code is still the same.
I think it ois a bug but I'm not sure.
Thanks a lot for your help !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions