Skip to content

Type Alias: ValidationMessageKey

ts
type ValidationMessageKey = readonly [
  "alternatives.all",
  "alternatives.any",
  "alternatives.match",
  "alternatives.one",
  "alternatives.types",
  "any.custom",
  "any.default",
  "any.failover",
  "any.invalid",
  "any.only",
  "any.ref",
  "any.required",
  "any.unknown",
  "array.base",
  "array.excludes",
  "array.hasKnown",
  "array.hasUnknown",
  "array.includes",
  "array.includesRequiredBoth",
  "array.includesRequiredKnowns",
  "array.includesRequiredUnknowns",
  "array.length",
  "array.max",
  "array.min",
  "array.orderedLength",
  "array.sort",
  "array.sort.mismatching",
  "array.sort.unsupported",
  "array.sparse",
  "array.unique",
  "boolean.base",
  "date.base",
  "date.format",
  "date.greater",
  "date.less",
  "date.max",
  "date.min",
  "date.format.iso",
  "date.format.javascript",
  "date.format.unix",
  "function.arity",
  "function.class",
  "function.maxArity",
  "function.minArity",
  "number.base",
  "number.greater",
  "number.infinity",
  "number.integer",
  "number.less",
  "number.max",
  "number.min",
  "number.multiple",
  "number.negative",
  "number.port",
  "number.positive",
  "number.precision",
  "number.unsafe",
  "object.and",
  "object.assert",
  "object.base",
  "object.instance",
  "object.length",
  "object.max",
  "object.min",
  "object.missing",
  "object.nand",
  "object.oxor",
  "object.pattern.match",
  "object.refType",
  "object.regex",
  "object.rename.multiple",
  "object.rename.override",
  "object.schema",
  "object.unknown",
  "object.with",
  "object.without",
  "object.xor",
  "string.alphanum",
  "string.base",
  "string.base64",
  "string.creditCard",
  "string.dataUri",
  "string.domain",
  "string.email",
  "string.empty",
  "string.guid",
  "string.hex",
  "string.hexAlign",
  "string.hostname",
  "string.ip",
  "string.ipVersion",
  "string.isoDate",
  "string.isoDuration",
  "string.length",
  "string.lowercase",
  "string.max",
  "string.min",
  "string.normalize",
  "string.token",
  "string.pattern.base",
  "string.pattern.name",
  "string.pattern.invert.base",
  "string.pattern.invert.name",
  "string.trim",
  "string.uri",
  "string.uriCustomScheme",
  "string.uriRelativeOnly",
  "string.uppercase",
  "symbol.base",
  "symbol.map",
  "binary.base",
  "binary.length",
  "binary.max",
  "binary.min",
  "bigint.base",
  "bigint.greater",
  "bigint.less",
  "bigint.max",
  "bigint.min",
  "bigint.multiple",
  "bigint.negative",
  "bigint.positive",
  "datetime.base",
  "datetime.exactly",
  "datetime.equals",
  "datetime.after",
  "datetime.greater",
  "datetime.before",
  "datetime.less",
  "datetime.afterOrEqual",
  "datetime.min",
  "datetime.beforeOrEqual",
  "datetime.max",
  "datetime.weekend",
  "datetime.weekday",
  "phone.base",
  "phone.invalid",
  "phone.fixedLine",
  "phone.mobile",
  "phone.strictFixedLine",
  "phone.strictMobile",
  "phone.fixedLineOrMobile",
  "phone.tollFree",
  "phone.premiumRate",
  "phone.sharedCost",
  "phone.voip",
  "phone.personalNumber",
  "phone.pager",
  "phone.uan",
  "phone.voicemail",
  "phone.unknown",
  "phone.types",
];

Complete list of all Joi validation message keys. Used for type-safe validation message customization and i18n integration.