这是一个创建于 164 天前的主题,其中的信息可能已经有所发展或是发生改变。
当 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 2025 年 8 月 6 日
optional string bar = 1;
|