blob: 2df2955ae4284fbf646f8840f1efe21ca938e757 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
---
user_name:
validators:
length:
label: "&USERNAME"
min: 1
max: 50
message: VALIDATE.LENGTH_RANGE
no_leading_whitespace:
label: "&USERNAME"
message: VALIDATE.NO_LEAD_WS
no_trailing_whitespace:
label: "&USERNAME"
message: VALIDATE.NO_TRAIL_WS
required:
label: "&USERNAME"
message: VALIDATE.REQUIRED
username:
label: "&USERNAME"
message: VALIDATE.USERNAME
first_name:
validators:
length:
label: "&FIRST_NAME"
min: 1
max: 20
message: VALIDATE.LENGTH_RANGE
required:
label: "&FIRST_NAME"
message: VALIDATE.REQUIRED
transformations:
- trim
last_name:
validators:
length:
label: "&LAST_NAME"
min: 1
max: 30
message: VALIDATE.LENGTH_RANGE
transformations:
- trim
email:
validators:
required:
label: "&EMAIL"
message: VALIDATE.REQUIRED
length:
label: "&EMAIL"
min: 1
max: 150
message: VALIDATE.LENGTH_RANGE
email:
message: VALIDATE.INVALID_EMAIL
locale:
default: en_US
validators:
required:
label: "&LOCALE"
domain: server
message: VALIDATE.REQUIRED
length:
label: "&LOCALE"
min: 1
max: 10
domain: server
message: VALIDATE.LENGTH_RANGE
group_id:
validators:
integer:
label: "&GROUP"
domain: server
message: VALIDATE.INTEGER
city:
validators:
length:
label: City
min: 1
max: 255
message: VALIDATE.LENGTH_RANGE
country:
validators:
length:
label: Country
min: 1
max: 255
message: VALIDATE.LENGTH_RANGE
|