diegohaz/schm

Validators are being ignored when type is an array

Open

#37 opened on 2018年6月6日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)JavaScript (23 forks)github user discovery
bughelp wanted

Repository metrics

Stars
 (512 stars)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド