diegohaz/schm

Validators are being ignored when type is an array

Open

#37 opened on Jun 6, 2018

View on 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)

Description

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.

Contributor guide