diegohaz/schm

Validators are being ignored when type is an array

Open

#37 创建于 2018年6月6日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (23 fork)github user discovery
bughelp wanted

仓库指标

Star
 (512 star)
PR 合并指标
 (PR 指标待抓取)

描述

Reported by @J-F-Liu in https://github.com/diegohaz/schm/issues/35#issuecomment-395087573

schema({
  correctOptions: {
    type: [String],
    minlength: 1,
  },
});

with this code, the minlength validator is ignored.

贡献者指南