Skip to content

新版不能使用protoc-gen-validator吗 #1843

@FengRuner

Description

@FengRuner

新版本中,使用protoc-gen-validator会提示proto 文件中报错,可以使用protoc,但是写了验证,kitex 工具生成文件就会出错,而且protoc-gen-validator包内, repeated int64 id = 1 [(api.vt).elem.gt="0"]; 这种写法生成的验证代码会有问题,类型不能匹配,如果想校验,应该怎么办呢

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