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 want to validate nested maps with a mapped validate map! example:
var mapTemplate = map[string]interface{}{ "name":"required,alpha", "family":"required,alpha", "email":"required,email", "cell-phone":"numeric", "address":map[string]interface{}{ "line1":"required,alphanum", "line2":"alphanum", "postal-code":"numeric", }, } var inputMap = map[string]interface{}{ "name":"Bob", "family":"Smith", "email":"[email protected]", "address":map[string]interface{}{ "line1":"", "line2":"", "postal-code":"", }, } func validate() { govalidator.MapValidate(mapTemplate , inputMap) }
The text was updated successfully, but these errors were encountered:
I need it to validate request inputs!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hi,
I want to validate nested maps with a mapped validate map!
example:
The text was updated successfully, but these errors were encountered: