We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I use the following rules on a map<string, string>:
map<string, string>
(validate.rules).map.keys.string.min_len = 1,
And when the rule is not respected, the error message is ending by:
value length must be at least 1 characters
Shouldn't it be:
key length must be at least 1 characters
Besause it is not clear if the key or the value do not respect the rule
Regards
The text was updated successfully, but these errors were encountered:
[GO] I use the following rules on a map<string, string>
[(validate.rules).map = {ignore_empty: true, keys: {string: {ignore_empty: true, pattern:"^[a-zA-Z- ]+$"}}, values: {string : {ignore_empty: true, pattern:"^[^<>]+$"}}}];
In file validate.go:
Sorry, something went wrong.
No branches or pull requests
Hi,
I use the following rules on a
map<string, string>
:(validate.rules).map.keys.string.min_len = 1,
And when the rule is not respected, the error message is ending by:
Shouldn't it be:
Besause it is not clear if the key or the value do not respect the rule
Regards
The text was updated successfully, but these errors were encountered: