graveyard v0.6.2 Graveyard.Validators.Integer View Source
Adding a new validator
To add a new validation criteria, you must:
- Add the new criteria to the @option_keys list
- Implement one function which returns either :ok or {:error, message}
Link to this section Summary
Functions
Callback implementation for Vex.Validator.Behaviour.validate/2
Callback implementation for Vex.Validator.Behaviour.validate/3
Link to this section Functions
Callback implementation for Vex.Validator.Behaviour.validate/2
.
Callback implementation for Vex.Validator.Behaviour.validate/3
.