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.

貢獻者指南