1
1
{
2
- "schema" : {
3
- "type" : " object" ,
4
- "properties" : {
5
- "first_name" : { "type" : " string" },
6
- "last_name" : { "type" : " string" },
7
- "address" : {
2
+ "schema" : {
8
3
"type" : " object" ,
9
4
"properties" : {
10
- "street_1" : { "type" : " string" },
11
- "street_2" : { "type" : " string" },
12
- "city" : { "type" : " string" },
13
- "state" : {
14
- "type" : " string" ,
15
- "enum" : [ " AL" , " AK" , " AS" , " AZ" , " AR" , " CA" , " CO" , " CT" , " DE" ,
16
- " DC" , " FM" , " FL" , " GA" , " GU" , " HI" , " ID" , " IL" , " IN" , " IA" ,
17
- " KS" , " KY" , " LA" , " ME" , " MH" , " MD" , " MA" , " MI" , " MN" , " MS" ,
18
- " MO" , " MT" , " NE" , " NV" , " NH" , " NJ" , " NM" , " NY" , " NC" , " ND" ,
19
- " MP" , " OH" , " OK" , " OR" , " PW" , " PA" , " PR" , " RI" , " SC" , " SD" ,
20
- " TN" , " TX" , " UT" , " VT" , " VI" , " VA" , " WA" , " WV" , " WI" , " WY" ]
21
- },
22
- "zip_code" : { "type" : " string" }
23
- }
24
- },
25
- "birthday" : { "type" : " string" },
26
- "notes" : { "type" : " string" },
27
- "phone_numbers" : {
28
- "type" : " array" ,
29
- "items" : {
30
- "type" : " object" ,
31
- "properties" : {
32
- "type" : { "type" : " string" , "enum" : [ " cell" , " home" , " work" ] },
33
- "number" : { "type" : " string" }
34
- },
35
- "required" : [ " type" , " number" ]
36
- }
37
- }
5
+ "first_name" : { "type" : " string" },
6
+ "last_name" : { "type" : " string" },
7
+ "address" : {
8
+ "type" : " object" ,
9
+ "properties" : {
10
+ "street_1" : { "type" : " string" },
11
+ "street_2" : { "type" : " string" },
12
+ "city" : { "type" : " string" },
13
+ "state" : {
14
+ "type" : " string" ,
15
+ "enum" : [" AL" , " AK" , " AS" , " AZ" , " AR" , " CA" , " CO" , " CT" , " DE" ,
16
+ " DC" , " FM" , " FL" , " GA" , " GU" , " HI" , " ID" , " IL" , " IN" , " IA" ,
17
+ " KS" , " KY" , " LA" , " ME" , " MH" , " MD" , " MA" , " MI" , " MN" , " MS" ,
18
+ " MO" , " MT" , " NE" , " NV" , " NH" , " NJ" , " NM" , " NY" , " NC" , " ND" ,
19
+ " MP" , " OH" , " OK" , " OR" , " PW" , " PA" , " PR" , " RI" , " SC" , " SD" ,
20
+ " TN" , " TX" , " UT" , " VT" , " VI" , " VA" , " WA" , " WV" , " WI" , " WY"
21
+ ]
22
+ },
23
+ "zip_code" : { "type" : " string" }
24
+ }
25
+ },
26
+ "birthday" : { "type" : " string" },
27
+ "notes" : { "type" : " string" },
28
+ "phone_numbers" : {
29
+ "type" : " array" ,
30
+ "items" : {
31
+ "type" : " object" ,
32
+ "properties" : {
33
+ "type" : { "type" : " string" , "enum" : [" cell" , " home" , " work" ] },
34
+ "number" : { "type" : " string" }
35
+ },
36
+ "required" : [" type" , " number" ]
37
+ }
38
+ }
39
+ },
40
+ "required" : [" last_name" ]
38
41
},
39
- "required" : [ " last_name" ]
40
- },
41
- "layout" : [
42
- { "type" : " flex" , "flex-flow" : " row wrap" , "items" : [ " first_name" , " last_name" ] },
43
- { "key" : " address.street_1" , "title" : " Address" , "placeholder" : " Street" },
44
- { "key" : " address.street_2" , "notitle" : true },
45
- { "type" : " div" ,
46
- "display" : " flex" ,
47
- "flex-direction" : " row" ,
48
- "items" : [
49
- { "key" : " address.city" , "flex" : " 3 3 150px" ,
50
- "notitle" : true , "placeholder" : " City"
42
+ "layout" : [
43
+ { "type" : " flex" , "flex-flow" : " row wrap" , "items" : [" first_name" , " last_name" ] },
44
+ { "key" : " address.street_1" , "title" : " Address" , "placeholder" : " Street" },
45
+ { "key" : " address.street_2" , "notitle" : true },
46
+ {
47
+ "type" : " div" ,
48
+ "display" : " flex" ,
49
+ "flex-direction" : " row" ,
50
+ "items" : [{
51
+ "key" : " address.city" ,
52
+ "flex" : " 3 3 150px" ,
53
+ "notitle" : true ,
54
+ "placeholder" : " City"
55
+ },
56
+ {
57
+ "key" : " address.state" ,
58
+ "flex" : " 1 1 50px" ,
59
+ "notitle" : true ,
60
+ "placeholder" : " State"
61
+ },
62
+ {
63
+ "key" : " address.zip_code" ,
64
+ "flex" : " 2 2 100px" ,
65
+ "notitle" : true ,
66
+ "placeholder" : " Zip Code"
67
+ }
68
+ ]
51
69
},
52
- { "key" : " address.state" , "flex" : " 1 1 50px" ,
53
- "notitle" : true , "placeholder" : " State"
70
+ { "key" : " birthday" , "type" : " date" },
71
+ {
72
+ "key" : " phone_numbers" ,
73
+ "display" : " flex" ,
74
+ "flex-flow" : " row wrap" ,
75
+ "type" : " array" ,
76
+ "listItems" : 3 ,
77
+ "items" : [{
78
+ "type" : " div" ,
79
+ "displayFlex" : true ,
80
+ "flex-direction" : " row" ,
81
+ "items" : [{
82
+ "key" : " phone_numbers[].type" ,
83
+ "flex" : " 1 1 90px" ,
84
+ "notitle" : true ,
85
+ "placeholder" : " Type"
86
+ },
87
+ {
88
+ "key" : " phone_numbers[].number" ,
89
+ "flex" : " 4 4 200px" ,
90
+ "notitle" : true ,
91
+ "placeholder" : " Phone Number"
92
+ }
93
+ ]
94
+ }]
54
95
},
55
- { "key" : " address.zip_code" , "flex" : " 2 2 100px" ,
56
- "notitle" : true , "placeholder" : " Zip Code"
96
+ {
97
+ "type" : " section" ,
98
+ "title" : " Notes" ,
99
+ "expandable" : true ,
100
+ "expanded" : false ,
101
+ "items" : [{ "key" : " notes" , "type" : " textarea" , "notitle" : true }]
57
102
}
58
- ]
59
- },
60
- { "key" : " birthday" , "type" : " date" },
61
- { "key" : " phone_numbers" ,
62
- "type" : " array" ,
63
- "listItems" : 3 ,
64
- "items" : [ {
65
- "type" : " div" ,
66
- "displayFlex" : true ,
67
- "flex-direction" : " row" ,
68
- "items" : [
69
- { "key" : " phone_numbers[].type" , "flex" : " 1 1 50px" ,
70
- "notitle" : true , "placeholder" : " Type"
71
- },
72
- { "key" : " phone_numbers[].number" , "flex" : " 4 4 200px" ,
73
- "notitle" : true , "placeholder" : " Phone Number"
74
- }
75
- ]
76
- } ]
77
- },
78
- { "type" : " section" ,
79
- "title" : " Notes" ,
80
- "expandable" : true ,
81
- "expanded" : false ,
82
- "items" : [ { "key" : " notes" , "type" : " textarea" , "notitle" : true } ]
83
- }
84
- ],
85
- "data" : {
86
- "first_name" : " Jane" ,
87
- "last_name" : " Doe" ,
88
- "address" : {
89
- "street_1" : " 123 Main St." ,
90
- "city" : " Las Vegas" ,
91
- "state" : " NV" ,
92
- "zip_code" : " 89123"
93
- },
94
- "birthday" : " 1999-09-21" ,
95
- "phone_numbers" : [
96
- { "type" : " cell" , "number" : " 702-123-4567" },
97
- { "type" : " work" , "number" : " 702-987-6543" }
98
103
],
99
- "notes" : " (This is an example of an uninteresting note.)"
100
- }
101
- }
104
+ "data" : {
105
+ "first_name" : " Jane" ,
106
+ "last_name" : " Doe" ,
107
+ "address" : {
108
+ "street_1" : " 123 Main St." ,
109
+ "city" : " Las Vegas" ,
110
+ "state" : " NV" ,
111
+ "zip_code" : " 89123"
112
+ },
113
+ "birthday" : " 1999-09-21" ,
114
+ "phone_numbers" : [
115
+ { "type" : " cell" , "number" : " 702-123-4567" },
116
+ { "type" : " work" , "number" : " 702-987-6543" }
117
+ ],
118
+ "notes" : " (This is an example of an uninteresting note.)"
119
+ }
120
+ }
0 commit comments