diegohaz / diegohaz/schm

Validators are being ignored when type is an array

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
JavaScript
Stars
511
Forks
23
PR merge metrics
No merged PRs in 30d

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

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.