diegohaz/schm

Validators are being ignored when type is an array

Open

#37 aperta il 6 giu 2018

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (23 fork)github user discovery
bughelp wanted

Metriche repository

Star
 (512 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor