Skip to content

Support for recursive definitions in proto files #192

@yfeng72

Description

@yfeng72

When using the grpc-web protoc plugin, the files generated need to be packed using Closure Compiler. Unfortunately it doesn't really support recursive definitions of protobuf messages, i.e.

Message Node
{
  oneof Contents {
        List list = 1;
        Value val = 2;
    }
}

Message List {
      repeated Node = 1;
}

.....

To represent data structures that are similar to JSON, the structure above is needed. The C++ plugin of protoc supports it, but Closure Compiler does not.

The feature request is to enable such a structure by either generating JS code that uses something other than Closure Compiler, or expand Closure Compiler's functionality to support it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions