diegohaz/schm

Validators are being ignored when type is an array

Open

#37 ouverte le 6 juin 2018

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)JavaScript (23 forks)github user discovery
bughelp wanted

Métriques du dépôt

Stars
 (512 stars)
Métriques de merge PR
 (Métriques PR en attente)

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.

Guide contributeur