-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
area-grpcIncludes: GRPC wire-up, templatesIncludes: GRPC wire-up, templates
Description
Hi,
I'm trying to use the new great feature "grpc json transcoding", but I'm getting an error when I try to pass to the body a repeated field.
My proto :
syntax = "proto3";
import "Protos/google/api/annotations.proto";
option csharp_namespace = "GrpcGreeter";
package greet;
// The greeting service definition.
service Greeter {
rpc AddGreeting (AddRequest) returns (AddReply){
option (google.api.http) = {
post: "/greet"
body: "greetings"
};
}
}
message AddRequest {
repeated Greeting greetings = 1;
}
message AddReply {
repeated Greeting greetings = 1;
}
message Greeting {
string name = 1;
string level = 2;
string comment = 3;
}
So, if i understand correctly, it's not supported yet, am I right ?
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 2deac78a-8c57-7891-4bd0-8842f5e2af07
- Version Independent ID: 2deac78a-8c57-7891-4bd0-8842f5e2af07
- Content: Configure HTTP and JSON for gRPC JSON transcoding ASP.NET Core apps
- Content Source: aspnetcore/grpc/json-transcoding-binding.md
- Product: aspnet-core
- Technology: aspnetcore-grpc
- GitHub Login: @JamesNK
- Microsoft Alias: jamesnk
Metadata
Metadata
Assignees
Labels
area-grpcIncludes: GRPC wire-up, templatesIncludes: GRPC wire-up, templates
