Skip to content

Releases: smbhuin/SBValidator

Release 3.0.0

15 May 05:11
Compare
Choose a tag to compare

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

Release 2.0.1

12 Feb 16:49
Compare
Choose a tag to compare

Renamed

  • func month renamed to var month in MonthRule extension.

Updated

  • ArrayLengthRule changed to generic from Any type.

Release 2.0.0

07 Jan 09:34
Compare
Choose a tag to compare

Renamed

  • Framework renamed.
  • Cocoapod framework renamed to SBValidator.

Release 1.0.5

12 Dec 07:21
Compare
Choose a tag to compare

Updated

  • ArrayRule updated.

Release 1.0.4

31 Jul 17:29
Compare
Choose a tag to compare

Updated

  • Package restructured.
  • XCode Project Config Updated.
  • Cocoapod Spec Updated.

Renamed

  • var ISBN renamed to isbn in ISBNRule.
  • var IPV4 renamed to ipv4 in IPV4Rule.
  • var iso8601date renamed to iso8601Date in ISO8601DateRule.

Release 1.0.3

28 Jul 09:15
Compare
Choose a tag to compare

Updated

  • Fixes for cocoapod.

Stable Release 1.0.2

28 Jul 09:01
Compare
Choose a tag to compare

Updated

  • Fixes for cocoapod.

Stable Release 1.0.1

28 Jul 07:45
Compare
Choose a tag to compare

Updated

  • Validator functions return named touples now.

Initial Release

27 Jul 18:48
Compare
Choose a tag to compare
  • Initial release of Validator.