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

Add user-friendly message for maxLength validation #1353

Merged
merged 1 commit into from Dec 16, 2020

Conversation

nicksrandall
Copy link
Contributor

The error message "should not have fewer than 5 items" feels weird for a string of characters. I think we should revert back to v6 terminology and say "characters" instead of "items".

"should not have fewer than 5 items" feels weird for a string of characters. I think we should revert back to v6 terminology and say "characters" instead of "items".
@epoberezkin
Copy link
Member

epoberezkin commented Dec 16, 2020

It's actually an accidental wrong change from v6 - it's incorrectly copied from maxItems - thank you!

@epoberezkin epoberezkin merged commit dc55ff2 into ajv-validator:master Dec 16, 2020
@epoberezkin
Copy link
Member

in 7.0.1

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

Successfully merging this pull request may close these issues.

None yet

2 participants