-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
为什么ValidationError的ErrorCode必须是Integer? #38
Comments
嗯呢,ErrorCode用string或者int这个没有准则吧,只是这个类库选择了int,code一般都会有错误码,数字达意了。 |
Just extends ValidationError like I did. Example:
|
@tiagocpeixoto great catch! |
也遇到了相同的问题,现在项目定义的 ErrorCode 是 string类型 |
项目初始考虑欠佳,可以通过上面 tiagocpeixoto 的扩展方式workaround支持下。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
因为我们项目中使用的ErrorCode是用String数据类型,所以String数据类型感觉会更通用一些吧。
The text was updated successfully, but these errors were encountered: