We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
现在有个场景,在参数约定remark字段为字符串,但自动化测试时remark给到了null,并没有触发string的校验,哪怕新写一个customStringValidator也不会触发: 这是service层参数打印: 参数校验是放controller上,说明入参字段为null时,并不会触发验证器 注:验证器继承的是:Inhere\Validate\FieldValidation
The text was updated successfully, but these errors were encountered:
对,不加 required 都是值不为空才进入各个验证器
required
Sorry, something went wrong.
No branches or pull requests
现在有个场景,在参数约定remark字段为字符串,但自动化测试时remark给到了null,并没有触发string的校验,哪怕新写一个customStringValidator也不会触发:
这是service层参数打印:
参数校验是放controller上,说明入参字段为null时,并不会触发验证器
注:验证器继承的是:Inhere\Validate\FieldValidation
The text was updated successfully, but these errors were encountered: