ERROR_KEYS

ego~ ERROR_KEYS

Members

(static) ANY

Source:
Example
ANY: {
 UNKNOWN: 'any.unknown',
 REQUIRED: 'any.required',
 ALLOW: 'any.allow',
}

(static) ARRAY

Source:
Example
ARRAY: {
 TYPE: 'array.type',
 MIN_LENGTH: 'array.min.length',
 MAX_LENGTH: 'array.max.length',
 IN_RANGE: 'array.range',
 LENGTH: 'array.exact.length',
 EVERY: 'array.every',
 SOME: 'array.some',
}

(static) BOOLEAN

Source:
Example
BOOLEAN: {
 TYPE: 'boolean.type',
 TRUTHY: 'boolean.truthy',
 FALSY: 'boolean.falsy',
}

(static) NUMBER

Source:
Example
NUMBER: {
 TYPE: 'number.type',
 GE: 'number.ge',
 GT: 'number.gt',
 LE: 'number.le',
 LT: 'number.lt',
 RANGE: 'number.range',
}

(static) SHAPE

Source:
Example
SHAPE: {
 TYPE: 'shape.type',
 ALLOWED_KEYS: 'shape.allowed.keys',
 FORBIDDEN_KEYS: 'shape.forbidden.keys',
 EXPECTED_KEYS: 'shape.expected.keys',
}

(static) STRING

Source:
Example
STRING: {
 EMPTY: 'string.empty',
 TYPE: 'string.type',
 EMAIL: 'string.email',
 MATCH: 'string.match',
 MIN_LENGTH: 'string.min.length',
 MAX_LENGTH: 'string.max.length',
 LENGTH: 'string.exact.length',
 DIGITS: 'string.digits',
 ALPHANUM: 'string.alphanum',
 ISO_DATE: 'string.iso.date',
}