Created
May 18, 2022 00:26
-
-
Save kazzkiq/42935506499ecc409cf45b9463b4ee92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
required: "The '{field}' field is required.", | |
string: "The '{field}' field must be a string.", | |
stringEmpty: "The '{field}' field must not be empty.", | |
stringMin: "The '{field}' field length must be greater than or equal to {expected} characters long.", | |
stringMax: "The '{field}' field length must be less than or equal to {expected} characters long.", | |
stringLength: "The '{field}' field length must be {expected} characters long.", | |
stringPattern: "The '{field}' field fails to match the required pattern.", | |
stringContains: "The '{field}' field must contain the '{expected}' text.", | |
stringEnum: "The '{field}' field does not match any of the allowed values.", | |
stringNumeric: "The '{field}' field must be a numeric string.", | |
stringAlpha: "The '{field}' field must be an alphabetic string.", | |
stringAlphanum: "The '{field}' field must be an alphanumeric string.", | |
stringAlphadash: "The '{field}' field must be an alphadash string.", | |
stringHex: "The '{field}' field must be a hex string.", | |
stringSingleLine: "The '{field}' field must be a single line string.", | |
stringBase64: "The '{field}' field must be a base64 string.", | |
number: "The '{field}' field must be a number.", | |
numberMin: "The '{field}' field must be greater than or equal to {expected}.", | |
numberMax: "The '{field}' field must be less than or equal to {expected}.", | |
numberEqual: "The '{field}' field must be equal to {expected}.", | |
numberNotEqual: "The '{field}' field can't be equal to {expected}.", | |
numberInteger: "The '{field}' field must be an integer.", | |
numberPositive: "The '{field}' field must be a positive number.", | |
numberNegative: "The '{field}' field must be a negative number.", | |
array: "The '{field}' field must be an array.", | |
arrayEmpty: "The '{field}' field must not be an empty array.", | |
arrayMin: "The '{field}' field must contain at least {expected} items.", | |
arrayMax: "The '{field}' field must contain less than or equal to {expected} items.", | |
arrayLength: "The '{field}' field must contain {expected} items.", | |
arrayContains: "The '{field}' field must contain the '{expected}' item.", | |
arrayUnique: "The '{actual}' value in '{field}' field does not unique the '{expected}' values.", | |
arrayEnum: "The '{actual}' value in '{field}' field does not match any of the '{expected}' values.", | |
tuple: "The '{field}' field must be an array.", | |
tupleEmpty: "The '{field}' field must not be an empty array.", | |
tupleLength: "The '{field}' field must contain {expected} items.", | |
boolean: "The '{field}' field must be a boolean.", | |
currency: "The '{field}' must be a valid currency format", | |
date: "The '{field}' field must be a Date.", | |
dateMin: "The '{field}' field must be greater than or equal to {expected}.", | |
dateMax: "The '{field}' field must be less than or equal to {expected}.", | |
enumValue: "The '{field}' field value '{expected}' does not match any of the allowed values.", | |
equalValue: "The '{field}' field value must be equal to '{expected}'.", | |
equalField: "The '{field}' field value must be equal to '{expected}' field value.", | |
forbidden: "The '{field}' field is forbidden.", | |
function: "The '{field}' field must be a function.", | |
email: "The '{field}' field must be a valid e-mail.", | |
emailEmpty: "The '{field}' field must not be empty.", | |
emailMin: "The '{field}' field length must be greater than or equal to {expected} characters long.", | |
emailMax: "The '{field}' field length must be less than or equal to {expected} characters long.", | |
luhn: "The '{field}' field must be a valid checksum luhn.", | |
mac: "The '{field}' field must be a valid MAC address.", | |
object: "The '{field}' must be an Object.", | |
objectStrict: "The object '{field}' contains forbidden keys: '{actual}'.", | |
objectMinProps: "The object '{field}' must contain at least {expected} properties.", | |
objectMaxProps: "The object '{field}' must contain {expected} properties at most.", | |
url: "The '{field}' field must be a valid URL.", | |
urlEmpty: "The '{field}' field must not be empty.", | |
uuid: "The '{field}' field must be a valid UUID.", | |
uuidVersion: "The '{field}' field must be a valid UUID version provided.", | |
classInstanceOf: "The '{field}' field must be an instance of the '{expected}' class.", | |
objectID: "The '{field}' field must be an valid ObjectID", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment