Closed bafflingbug closed 2 months ago
// 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
GoLand 2024.1.4 Build #GO-241.18034.61, built on June 21, 2024
Protobuf plugin: 2.0.0
It will be resolved in 2.0.1
Reproducible example
there is an error
in the official plugin