@@ -6,22 +6,32 @@ module.exports = {
6
6
alphaNum : 'The :attribute can only contain letters and numbers.' ,
7
7
array : 'The :attribute must be an array.' ,
8
8
before : 'The :attribute must be a date before :arg0.' ,
9
+ base64 : 'The :attribute must be a valid base64 string.' ,
9
10
between : 'The :attribute must be between :arg0 and :arg1' ,
10
11
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.' ,
11
14
date : 'The :attribute is not a valid date.' ,
12
15
dateFormat : 'The :attribute does not match the format :arg0.' ,
13
16
different : 'The :attribute and :arg0 must be different.' ,
14
17
digits : 'The :attribute must be digit.' ,
15
18
digitsBetween : 'The :attribute must be between :arg0 and :arg1.' ,
16
19
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.' ,
19
25
ip : 'The :attribute must be a valid IP address.' ,
20
26
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.' ,
21
29
max : 'The :attribute can not be greater than :arg0.' ,
22
30
maxLength : 'The :attribute can not be greater than :arg0.' ,
31
+ minLength : 'The :attribute can not be less than :arg0.' ,
23
32
mimes : 'The :attribute must be a file of type: :value.' ,
24
33
min : 'The :attribute must be at least :arg0.' ,
34
+ mongoId : 'The :attribute must be a valid mongo id.' ,
25
35
numeric : 'The :attribute must be a number.' ,
26
36
regex : 'The :attribute format is invalid.' ,
27
37
required : 'The :attribute field is mandatory.' ,
0 commit comments