Skip to content

校验提交的数组数据时的问题 #24

@joewongex

Description

@joewongex

提交数组类型的数据到服务器,例如names[],没有在校验规则中添加required规则,而只是添加了一个min_length[3]的校验规则,如果提交的names[0]是一个空字符串,那么校验是不能通过的,提示字符长度至少需要三个字符。这和校验单个值的情况并不一致。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions