-
Notifications
You must be signed in to change notification settings - Fork 40
/
mock.json
121 lines (121 loc) · 1.92 KB
/
mock.json
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[{
"key": "name",
"type": "text",
"ui": {
"label": "Name"
},
"validation": {
"required": true
},
},
{
"key": "age",
"type": "number",
"ui": {
"label": "Age"
}
},
{
"key": "email",
"type": "email",
"ui": {
"label": "Email"
},
"validation": {
"required": true
},
},
{
"key": "favorite_int",
"type": "number",
"default": 20,
"ui": {
"label": "Favorite integer between 10 and 100",
},
"validation": {
"min": 10,
"max": 100
}
},
{
"key": "favorite_float",
"type": "decimal",
"precision": 0.01,
"default": 0,
"ui": {
"label": "Favorite float between -10 and 10"
},
"validation": {
"min": -10,
"required": false,
"max": 10
}
},
{
"key": "favorite_color",
"type": "select",
"choices": [
{
"value": "red",
"name": "red"
},
{
"value": "blue",
"name": "blue"
}
],
"validation": {
"required": true,
},
"ui": {
"label": "Favorite color"
}
},
{
"key": "is_this_form_dumb",
"type": "boolean",
"default": false,
"ui": {
"label": "Is this form dumb"
},
},
{
"key": "best_friend",
"type": "select",
"choices": [],
"ui": {
"label": "Best friend"
},
},
{
"key": "website",
"type": "url",
"ui": {
"label": "Website"
},
},
{
"key": "what_time_is_it",
"type": "time",
"default": "06:30:00",
"ui": {
"label": "What time is it"
},
},
{
"key": "birthday_plus_time",
"type": "datetime-local",
"default": "1990-01-02T06:30:00Z",
"ui": {
"label": "Birthday plus time"
}
},
{
"key": "birthday",
"type": "date",
"default": "1990-01-02T06:30:00Z",
"ui": {
"label": "Birthday"
},
}
]