Skip to content

Releases: ApamateSoft/Validator

1.3.2

29 Apr 02:05
d8591b8
Compare
Choose a tag to compare
  • The validOrFail and compareOrFail functions now require a key attribute to be identified.
  • Fixed problem when checking if the catch error object is of type InvalidEvaluationError using instanceof.
  • The message returned by the name rule and @Name annotation has been changed.

1.3.1

16 Apr 23:51
2a49809
Compare
Choose a tag to compare
  • Fixed translation problem of the default message of the name rule in English.
  • Changed the error message for the onlyNumbers rule.

1.3.0

14 Apr 16:29
08b2cd7
Compare
Choose a tag to compare
  • Added annotations.
  • Renamed the dateFormat rule to date.
  • Renamed the mustContainMinimum rule to mustContainMin.
  • Renamed the isValidOrFail function to validOrFail.

Version 1.2.0

08 Jun 15:41
Compare
Choose a tag to compare
  • The onNotPass event has been renamed to onInvalidEvaluation.
  • Renamed the package id from com.apamatesoft.validator to io.github.ApamateSoft.validator.
  • Renamed the numericFormat rule to number.
  • The following predefined rules have been added:
    • dateFormat
    • expirationDate
    • httpLink
    • httpsLink
    • ip
    • ipv4
    • ipv6
    • link
    • maxValue
    • minAge
    • minValue
    • mustContainMinimum
    • mustContainOne
    • name
    • notContain
    • numberPattern
    • onlyAlphanumeric
    • onlyLetters
    • rangeLength
    • rangeValue
    • regExp
    • time
    • time12
    • time24
    • wwwLink