Added
CurrencyRule
added.NumericRule
added.errorOnValidate
method added inValidator
firstValid
method added inValidator
firstInvalid
method added inValidator
Updated
PhoneNumberRule
updated. You can now specify theFormat
of phone number.
Breaking Changes
validate()
method now throws exception and returnsBool
validate(named: String)
method now throws exception and returnsBool
validateAll()
method now returns[ValidationError]?
Previous validate() -> (valid: Bool, validatable: NamedValidatable?, error: ValidationError?)
Now validate() throws -> Bool