Running Manual Validations

Although validations are lazily computed, there are times where we might want to force all or specific validations to happen. For this reason we have exposed three methods:

  • validate: Will always return a promise and should be used if asynchronous validations are present
  • validateSync: Should only be used if all validations are synchronous. It will throw an error if any of the validations are asynchronous
  • validateAttribute: A functional approach to validating an attribute without changing its state