ElxValidation.Validate (elx_validation v0.1.0)

Validator Factory :

  • Validate all rules
  • Response to Validation result
  • not use inside validator
  • called automatically by validator

Link to this section Summary

Functions

check value and rules response to validation -> passed or failed if failed create errors

  • Explode rules and data
  • check field exist
  • start validation

Link to this section Functions

Link to this function

exception_builder(builder, errors, rule_field, type, data_value, rule_as)

check if validation builder false push error

Link to this function

validate_builder(validates, data, rule_field, rule_as, errors)

check value and rules response to validation -> passed or failed if failed create errors

Link to this function

validate_factory(data, rules)

Link to this function

validations(data, rules)

  • Explode rules and data
  • check field exist
  • start validation