mwitkow/go-proto-validators

Enum: fail to import cross packages

kostyaBro opened this issue · 3 comments

Can't generate validator for enum from imported package.

import "package/name/Bar.proto";
message Foo{
    package.name.Bar bar = 1 [(validator.field) = { is_in_enum: true }]; // compilation error
    //  undefined: Bar_name
}

You use function TypeName() but this function not contain the package name.

same issue

same issue here

same issue