Skip to content
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

字段为什么要默认设置 required 为 true #25

Open
MinJieLiu opened this issue Jun 17, 2017 · 0 comments
Open

字段为什么要默认设置 required 为 true #25

MinJieLiu opened this issue Jun 17, 2017 · 0 comments

Comments

@MinJieLiu
Copy link

大多数情况下,要验证某个字段,一般去验证其类型。必填字段占比并不高。

那么每次大多数字段我都要 设置 required: false 太麻烦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant