Skip to content

Create @Decorators for missing /behaviors/common/* #4

@Sorikairox

Description

@Sorikairox

We have a lot of behaviors in /behaviors/common/ but not all of them have decorators.

We need to implement them all (with tests for errors messages) in validators/common.ts following already written code.

Here is a list to track them :

  • contains
  • isAfter
  • isAlpha
  • isAlphanumeric
  • isAscii
  • isBase32
  • isBase64
  • isBefore
  • isBIC
  • isBoolean
  • isBtcAddress
  • isByteLength
  • isCreditCard
  • isCurrency
  • isDataURI
  • isDate
  • isDecimal
  • isDivisibleBy
  • isEAN
  • isEmail
  • isEmpty
  • isEthereumAddress
  • isFloat
  • isFQDN
  • isFullWidth
  • isHalfWidth
  • isHash
  • isHexadecimal
  • isHexColor
  • isHSL
  • isIBAN
  • isIdentityCard
  • isIn
  • isInt
  • isISIN
  • isISO31661Alpha2
  • isISO31661Alpha3
  • isISO8601
  • isISBN
  • isISRC
  • isISSN
  • isJSON
  • isIP
  • isIPRange
  • isJWT
  • isLatLong
  • isLocale
  • isLowerCase
  • isMACAddress
  • isMagnetURI
  • isMimeType
  • isMongoId
  • isMobilePhone
  • isMultibyte
  • isNumeric
  • isOctal
  • isPassportNumber
  • isPort
  • isPostalCode
  • isRFC3339
  • isRgbColor
  • isSemVer
  • isSlug
  • isSurrogatePair
  • isUpperCase
  • isURL
  • isUUID
  • isVariableWidth
  • isWhitelisted,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions