Skip to content

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

Open

Description

@MinJieLiu

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions