-
Notifications
You must be signed in to change notification settings - Fork 574
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
在serverless项目中,使用@midwayjs/validate中messages自定义错误信息时不生效 #3080
Labels
status: Holding
Same features may be hold, and implements layer.
Comments
czy88840616
added
the
status: Holding
Same features may be hold, and implements layer.
label
Jul 14, 2023
看文档,使用的是
用的是 error,而不是 message。 |
用error是可以自定义错误,但只能是针对这个属性不合法触发,并不知道是违反了哪个规则;
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在serverless项目中,使用@midwayjs/validate中messages自定义错误信息时不生效,
dto代码如下:
使用messages自定义错误信息依旧按原来的信息返回
The text was updated successfully, but these errors were encountered: