I'm using JSON transcoding in a .NET 7 gRPC service. A certain element in the proto file is using the Any element:
google.protobuf.Any payload = 3 [(validate.rules) = {any:{required:true}}];
When I'm sending a request containing the Any element
Request exerpt:
"inputPayload": {
@type": "type.googleapis.com/myRequestPayload",
"foo": "bar",
}
it gives this response:
{
"code": 3,
"message": "Type registry has no descriptor for type name 'myRequestPayload'.",
"details": []
}
I do have another proto with the definition of myRequestPayload. How can I register this type so that the gRPC service understands the contents of the Any element?