Ejabberd.Config.Validator.Attrs.validate

You're seeing just the function validate, go back to Ejabberd.Config.Validator.Attrs module for more information.

Specs

validate(mod_validation()) :: mod_validation()

Given a module (with the form used for validation) it runs Attr.validate/1 on each attribute and returns the validation tuple with the errors updated, if found.