diegohaz/schm

Validators are being ignored when type is an array

Open

#37 aberto em 6 de jun. de 2018

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (23 forks)github user discovery
bughelp wanted

Métricas do repositório

Stars
 (512 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

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.

Guia do colaborador