Ivandt logo

Validators

Complete reference for all built-in validators

Ivandt provides 18 built-in validators for comprehensive data validation.

Quick Reference

ValidatorPurposeExample
requiredNon-empty valueName field
emailValid emailuser@example.com
phoneValid phone number+1 555-0100
urlValid URLhttps://example.com
numericValid number42 or 3.14
minMinimum valueAge >= 18
maxMaximum valueScore <= 100
rangeValue in range0-100
minLengthMin charactersPassword >= 8 chars
maxLengthMax charactersTitle <= 255 chars
regexPattern matchProduct code ABC-1234
uniqueNo duplicatesEmail addresses
enumerateFrom allowed listStatus: Active/Inactive
booleanTrue/false value"true" or "false"
dateValid date2025-01-15
uuidValid UUID550e8400-e29b-41d4-a716
creditcardValid card number4111111111111111
rulesComplex logicCross-field validation

Error Severity

All validators support two severity levels:

  • 'e' (error): Blocks submission or removes rows (depending on configuration)
  • 'w' (warning): Allows submission but alerts the user
{
  type: 'phone',
  countries: ['US'],
  severity: 'w',  // Warning instead of error
  message: 'Phone number format looks unusual'
}