You're seeing just the callback before_validate, go back to Cqrs.Command module for more information.


before_validate(map()) :: map()

Allows one to modify the incoming attrs before they are validated. Note that all attribute keys a converted to strings before this callback is invoked.

This callback is optional.

Invoked before the handle_validate/2 callback is called.