@khoativi/nestjs-class-validator-i18n
Version:
NestJS integration for class-validator with i18n support using Accept-Language headers and customizable locale files.
66 lines • 3.83 kB
JSON
{
"isDefined": "$property should not be empty",
"isOptional": "$property is optional",
"isString": "$property must be a string",
"isNotEmpty": "$property should not be empty",
"isBoolean": "$property must be a boolean value",
"isDate": "$property must be a valid date",
"isNumber": "$property must be a number",
"isInt": "$property must be an integer number",
"isPositive": "$property must be a positive number",
"isNegative": "$property must be a negative number",
"min": "$property must be greater than or equal to $constraint1",
"max": "$property must be less than or equal to $constraint1",
"minLength": "$property must be at least $constraint1 characters",
"maxLength": "$property must be at most $constraint1 characters",
"length": "$property must be between $constraint1 and $constraint2 characters",
"matches": "$property must match pattern $constraint1",
"isEmail": "$property must be a valid email",
"isUrl": "$property must be a valid URL",
"isUuid": "$property must be a valid UUID",
"isEnum": "$property must be a valid enum value",
"isArray": "$property must be an array",
"arrayMinSize": "$property must contain at least $constraint1 items",
"arrayMaxSize": "$property must contain at most $constraint1 items",
"arrayContains": "$property must contain $constraint1",
"arrayNotContains": "$property must not contain $constraint1",
"arrayUnique": "$property must contain unique values",
"isIn": "$property must be one of [$constraint1]",
"isNotIn": "$property must not be one of [$constraint1]",
"isCreditCard": "$property must be a valid credit card number",
"isPhoneNumber": "$property must be a valid phone number",
"isLatitude": "$property must be a valid latitude",
"isLongitude": "$property must be a valid longitude",
"isMilitaryTime": "$property must be a valid time (HH:mm)",
"isBooleanString": "$property must be a boolean string ('true' or 'false')",
"isDateString": "$property must be a valid date string",
"isJson": "$property must be a valid JSON string",
"isCreditCardString": "$property must be a valid credit card string",
"isByteLength": "$property must have byte length between $constraint1 and $constraint2",
"isLowercase": "$property must be lowercase",
"isUppercase": "$property must be uppercase",
"contains": "$property must contain $constraint1",
"notContains": "$property must not contain $constraint1",
"isIso8601": "$property must be a valid ISO8601 date string",
"isBase64": "$property must be a valid Base64 string",
"isBtcAddress": "$property must be a valid BTC address",
"isEthereumAddress": "$property must be a valid Ethereum address",
"isHash": "$property must be a valid hash of type $constraint1",
"isHexColor": "$property must be a valid hexadecimal color",
"isIBAN": "$property must be a valid IBAN",
"isIdentityCard": "$property must be a valid identity card number",
"isISO4217CurrencyCode": "$property must be a valid ISO 4217 currency code",
"isIsin": "$property must be a valid ISIN (ISO 6166)",
"isISO31661Alpha2": "$property must be a valid ISO 3166-1 alpha-2 country code",
"isISO31661Alpha3": "$property must be a valid ISO 3166-1 alpha-3 country code",
"isISSN": "$property must be a valid ISSN",
"isJwt": "$property must be a valid JWT token",
"isMagnetURI": "$property must be a valid magnet URI",
"isMongoId": "$property must be a valid MongoDB ObjectId",
"isPostalCode": "$property must be a valid postal code",
"isRFC3339": "$property must be a valid RFC 3339 date",
"isSemVer": "$property must be a valid semantic version",
"isStrongPassword": "$property must be a strong password",
"isTimeZone": "$property must be a valid IANA time zone",
"isVariableWidth": "$property must contain a mix of full-width and half-width characters"
}