Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Premade Validators implementation #39

Open
10 of 53 tasks
MartynasZilinskas opened this issue May 9, 2017 · 1 comment
Open
10 of 53 tasks

Premade Validators implementation #39

MartynasZilinskas opened this issue May 9, 2017 · 1 comment

Comments

@MartynasZilinskas
Copy link

MartynasZilinskas commented May 9, 2017

  • Required
  • Exclusion - check if value isn't in exclusion list

Number validators

  • OddNumber
  • EvenNumber
  • GreaterThanNumber
  • GreaterThanOrEqualToNumber
  • EqualToNumber
  • LessThanNumber
  • LessThanOrEqualToNumber

Implementation of NPM package Validator:

  • Contains
  • Equals
  • Alpha
  • Alphanumeric
  • Ascii
  • Base64
  • Boolean
  • ByteLength
  • CreditCard
  • Currency
  • DataURI - check if the string is a data uri format
  • Decimal - check if the string is decimal
  • DivisibleBy - check if the string is a number that's divisible by another
  • Email
  • EmptyString
  • FQDN - check if the string is a fully qualified domain name (e.g. domain.com)
  • Float - check if the string is a float.
  • FullWidth - check if the string contains any full-width chars.
  • HalfWidth - check if the string contains any half-width chars.
  • HexColor
  • Hexadecimal
  • IP - check if the string is an IP (version 4 or 6).
  • ISBN - check if the string is an ISBN (version 10 or 13).
  • ISSN - check if the string is an ISSN.
  • ISIN - check if the string is an ISIN
  • ISO8601 - check if the string is a valid ISO 8601 date
  • Inclusion - check if the string is in a array of allowed values
  • Int
  • JSON - check if the string is valid JSON (note: uses JSON.parse)
  • Length - check if the string's length falls in a range
  • Lowercase
  • MACAdress
  • MD5
  • MobilePhone
    Mongold
  • Multibyte
  • Numeric
  • SurrogatePair
  • URL
  • UUID
  • Uppercase
  • VariableWidth
  • Whitelisted - checks characters if they appear in the whitelist.
  • Matches (Regex)

Other:

  • DebounceValidator
@MartynasZilinskas
Copy link
Author

I wrote down all validators that could be included in this package. But not all of them should be included. We need to cross out some of them @DovydasNavickas @GiedriusGrabauskas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant