devkanro / intellij-protobuf-plugin

IntelliJ-based IDEs Protobuf Language Plugin that provides Protobuf language support.
Apache License 2.0
83 stars 11 forks source link

FieldOptions not support repeated field #260

Closed bafflingbug closed 2 months ago

bafflingbug commented 2 months ago

Reproducible example

// validate.proto
import "google/protobuf/descriptor.proto";

extend google.protobuf.FieldOptions {
  optional FieldRules rules = 1001;
}

message FieldRules {
  oneof type {
    StringRules   string   = 1;
  }
}

message StringRules {
  repeated string in     = 10;
}
import "validate.proto"

message Request {
  string option = 1 [(validate.rules).string = {in: ["add", "del", "update"]}];
}

there is an error image

in the official plugin

image

bafflingbug commented 2 months ago

GoLand 2024.1.4 Build #GO-241.18034.61, built on June 21, 2024

Protobuf plugin: 2.0.0

devkanro commented 2 months ago

It will be resolved in 2.0.1