这是一个创建于 133 天前的主题,其中的信息可能已经有所发展或是发生改变。
当 string username = "跟未设置 username ,如何让检验返回自定义错误?
string username = 2 [
(buf.validate.field).cel = {
id: "username.not_empty",
message: "username not Empty",
expression: "this.size() > 1"
}
];
1 条回复 • 2025-08-06 23:30:36 +08:00
 |
|
1
qzzz 128 天前
optional string bar = 1;
|