diegohaz/schm

Validators are being ignored when type is an array

Open

#37 geöffnet am 6. Juni 2018

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (23 Forks)github user discovery
bughelp wanted

Repository-Metriken

Stars
 (512 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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