Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String minlength and maxlength don't work #21

Closed
kalvinarts opened this issue Apr 16, 2020 · 1 comment
Closed

String minlength and maxlength don't work #21

kalvinarts opened this issue Apr 16, 2020 · 1 comment
Assignees

Comments

@kalvinarts
Copy link
Contributor

kalvinarts commented Apr 16, 2020

The String type needs minlength and maxlength options to be in lowercase as specified in the mongoose docs:

SchemaStringOptions.prototype.maxlength
SchemaStringOptions.prototype.minlength

PR #20

@DScheglov DScheglov self-assigned this Apr 17, 2020
@DScheglov
Copy link
Owner

Fixed in v1.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants