Skip to content

Support google.protobuf.Value聽#100

Description

@shhac

I'm working with gRPC, field masks and google.protobuf.Value, and the fact that it is cyclic is making Wombat unusable 馃槥

It is rare that people use a cyclic structure to depths of more than 4 or 5, so would it be possible to change the error on cyclic types to instead depth count and "snip" when it reaches some reasonable/configured depth (e.g. 7) rather than throwing away the whole graph?

import "google/protobuf/field_mask.proto";
import "google/protobuf/struct.proto";

service ExampleService {
  rpc Example(ExampleRequest) returns (ExampleResponse);
}

message ExampleRequest {
  google.protobuf.FieldMask field_mask = 1;
  google.protobuf.Value data = 2;
}

message ExampleResponse {
  bool success = 1;
}

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions