Skip to content

well known not encode as expected #29

@elvizlai

Description

@elvizlai

For example

given proto def

rpc Version(google.protobuf.Empty) returns(google.protobuf.Struct);

with server response impl

	resp := &structpb.Struct{
		Fields: map[string]*structpb.Value{
			"proto_version": {Kind: &structpb.Value_StringValue{
				StringValue:  "aabbcc",
			}},
		},
	}

which expect:

{"proto_version":"aabbcc"}

but got:

{"fields":{"proto_version":{"string_value":"aabbcc"}}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions