Skip to content

Grpc transcoding in .net 7 - cannot post repeated field #47510

@victorsauter

Description

@victorsauter

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;
}

The error :
image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-grpcIncludes: GRPC wire-up, templates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions