Skip to content

Commit 9c1018e

Browse files
committed
message updated
1 parent ede51a7 commit 9c1018e

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

lib/messages/en/messages.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,32 @@ module.exports = {
66
alphaNum: 'The :attribute can only contain letters and numbers.',
77
array: 'The :attribute must be an array.',
88
before: 'The :attribute must be a date before :arg0.',
9+
base64: 'The :attribute must be a valid base64 string.',
910
between: 'The :attribute must be between :arg0 and :arg1',
1011
boolean: 'The :attribute field must be true or false.',
12+
conatins: 'The :attribute value must contains :arg0.',
13+
creditCard: 'The :attribute value must be a valid card number.',
1114
date: 'The :attribute is not a valid date.',
1215
dateFormat: 'The :attribute does not match the format :arg0.',
1316
different: 'The :attribute and :arg0 must be different.',
1417
digits: 'The :attribute must be digit.',
1518
digitsBetween: 'The :attribute must be between :arg0 and :arg1.',
1619
email: 'The :attribute must be a valid email address.',
17-
in: 'The selected :attribute is invalid.',
18-
integer: 'The :attribute must be an integer.',
20+
hash: 'The :attribute must be a valid :arg0 hash.',
21+
hex: 'The :attribute must be a valid hex.',
22+
hexColor: 'The :attribute must be a valid hex color.',
23+
in: 'The :attribute be one of :arg.',
24+
integer: 'The :attribute must be a valid integer.',
1925
ip: 'The :attribute must be a valid IP address.',
2026
json: 'The :attribute must be a valid JSON string.',
27+
latLong: 'The :attribute must be a valid lat and longitude without space.',
28+
lengthBetween: 'The :attribute length must be between :arg0 - :arg1.',
2129
max: 'The :attribute can not be greater than :arg0.',
2230
maxLength: 'The :attribute can not be greater than :arg0.',
31+
minLength: 'The :attribute can not be less than :arg0.',
2332
mimes: 'The :attribute must be a file of type: :value.',
2433
min: 'The :attribute must be at least :arg0.',
34+
mongoId: 'The :attribute must be a valid mongo id.',
2535
numeric: 'The :attribute must be a number.',
2636
regex: 'The :attribute format is invalid.',
2737
required: 'The :attribute field is mandatory.',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-input-validator",
3-
"version": "2.3.3",
3+
"version": "2.3.4",
44
"description": "validation library",
55
"main": "index.js",
66
"scripts": {
@@ -57,4 +57,4 @@
5757
"ncp": "^2.0.0",
5858
"should": "^13.2.3"
5959
}
60-
}
60+
}

0 commit comments

Comments
 (0)