Results 60 comments of Luo Peng

Thanks for your reply! I agree with you. By using the SD, we can implement **some weight-based strategy** as you described above. Fowler also mentioned some other approachs like **choosing...

@francesconi Thanks for your attention! `validating` concentrates on data validation, so the corresponding errors are also designed around data validation. For now, an error of `validating` consists of three parts:...

Thanks for the details! How will `.Err(err error)`, if supported, be used along with `NotFoundError` in the schema definition? What does the code look like in your example?

If it's just a matter of dynamic message strings, I guess maybe we can do something like this: [[play](https://go.dev/play/p/j-q66FD9FKD)] ```go package main import ( "fmt" v "github.com/RussellLuo/validating/v3" ) type Foo...

Actually, what I'm trying to understand is why distinguishing different errors matters, in the scenario of data validation, if all of errors essentially are of the same kind (e.g. INVLIAD...

Thanks for your feedback! Adding error details seems good, but will also introduce complexity. For a better understanding of your problem, could you please expand the part `// handle the...

Let me try to construct the validation flow at the server side: 1. Handle a request containing a room code from client 2. Validate the room code (using validating's schema)...

If the reaction to any error is to request the client to **resend all rooms**, I guess the whole operation will be idempotent, i.e., the result will be the same...

> The only solution I see for now is **using a static error** for RoomNotFound ... but our support team won't be happy to read **these vague error messages**. Per...

> 下周我们会抽时间整理shell更新上去 是指用 shell 包装一个训练脚本吗?如果能做成一个通过 pip install 自动安装的命令行工具感觉会更方便。按照「提议」的风格,我自己实现了一个 [rocketqa 命令](https://github.com/PaddlePaddle/RocketQA/compare/main...RussellLuo:RocketQA:add-rocketqa-cli),如果有用的话,可以作为参考 :)