当 string username = "跟未设置 username ,如何让检验返回自定义错误?
string username = 2 [
(buf.validate.field).cel = {
id: "username.not_empty",
message: "username not Empty",
expression: "this.size() > 1"
}
];
string username = 2 [
(buf.validate.field).cel = {
id: "username.not_empty",
message: "username not Empty",
expression: "this.size() > 1"
}
];