Strukt.validate

You're seeing just the callback validate, go back to Strukt module for more information.

Specs

This callback can be overridden to provide custom validation logic.

The default implementation simply returns the changeset it is given. Validations defined inline with fields are handled by a specially generated __validate__/1 function which is called directly by new/1 and change/2.

NOTE: If you override this function, there is no need to invoke super/1