Skip to content

Error message for field modifier inside oneof block #49

@cconroy

Description

@cconroy

When I use a oneof with this plugin, it reports a syntax error on the last field.

e.g.

message Foo {
  oneof bar {
    optional string baz = 1;
    optional int32 fizz = 2;
  }
}

It reports: "extraneous input fizz, expecting '='"

Plugin version 0.8

see: https://developers.google.com/protocol-buffers/docs/reference/java-generated#oneof-fields

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions