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
xxxResource: { project_id: { type: 'integer', pattern: '^[0-9]*[1-9][0-9]*$', description: '新建作品留空' }, },
我一开始是这样写的,但是即使required不等于true它也会去校验正则, 后来我又 把正则改成了 ^$|^[0-9]*[1-9][0-9]*$ ,但是发现校验依然失败, 是不是不能这样设置呢?
^$|^[0-9]*[1-9][0-9]*$
The text was updated successfully, but these errors were encountered:
No branches or pull requests
我一开始是这样写的,但是即使required不等于true它也会去校验正则,
后来我又 把正则改成了
^$|^[0-9]*[1-9][0-9]*$
,但是发现校验依然失败,是不是不能这样设置呢?
The text was updated successfully, but these errors were encountered: