Skip to content

Release 3.0.0

Latest
Compare
Choose a tag to compare
@smbhuin smbhuin released this 15 May 05:11

Added

  • CurrencyRule added.
  • NumericRule added.
  • errorOnValidate method added in Validator
  • firstValid method added in Validator
  • firstInvalid method added in Validator

Updated

  • PhoneNumberRule updated. You can now specify the Format of phone number.

Breaking Changes

  • validate() method now throws exception and returns Bool
  • validate(named: String) method now throws exception and returns Bool
  • validateAll() method now returns [ValidationError]?

Previous validate() -> (valid: Bool, validatable: NamedValidatable?, error: ValidationError?)
Now validate() throws -> Bool