Skip to content

Commit 717b2a5

Browse files
committed
Replaces firstName and lastName with name to increase flexibility, fixes #4
1 parent a74a727 commit 717b2a5

File tree

3 files changed

+17
-21
lines changed

3 files changed

+17
-21
lines changed

resume.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"bio": {
3-
"firstName": "Richard",
4-
"lastName": "Hendriks",
3+
"name": "Richard Hendriks",
54
"email": {
65
"work": "[email protected]",
76
"personal": "[email protected]"

schema.json

+15-18
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
"bio": {
66
"type": "object",
77
"properties": {
8-
"firstName": {
9-
"type": "string"
10-
},
11-
"lastName": {
8+
"name": {
129
"type": "string"
1310
},
1411
"email": {
@@ -25,7 +22,7 @@
2522
}
2623
},
2724
"phone": {
28-
"type": "object",
25+
"type": "object",
2926
"description": "Phone numbers are stored as strings so use any format you like",
3027
"properties": {
3128
"work": {
@@ -96,14 +93,14 @@
9693
"work": {
9794
"type": "array",
9895
"items": {
99-
"type": "object",
96+
"type": "object",
10097
"properties": {
10198
"company": {
10299
"type": "string",
103100
"description": "e.g. Facebook"
104101
},
105102
"position": {
106-
"type": "string",
103+
"type": "string",
107104
"description": "e.g. Software Engineer"
108105
},
109106
"website": {
@@ -131,13 +128,13 @@
131128
}
132129
}
133130
}
134-
131+
135132
}
136133
},
137134
"education": {
138135
"type": "array",
139136
"items": {
140-
"type": "object",
137+
"type": "object",
141138
"properties": {
142139
"institution": {
143140
"type": "string",
@@ -170,15 +167,15 @@
170167
}
171168
}
172169
}
173-
174-
170+
171+
175172
}
176173
},
177174
"awards": {
178175
"type": "array",
179176
"description": "Specify any awards you have received throughout your professional career",
180177
"items": {
181-
"type": "object",
178+
"type": "object",
182179
"properties": {
183180
"title": {
184181
"type": "string",
@@ -199,7 +196,7 @@
199196
"type": "array",
200197
"description": "Specify your publications through your career",
201198
"items": {
202-
"type": "object",
199+
"type": "object",
203200
"properties": {
204201
"name": {
205202
"type": "string",
@@ -224,7 +221,7 @@
224221
"type": "array",
225222
"description": "List out your professional skill-set",
226223
"items": {
227-
"type": "object",
224+
"type": "object",
228225
"properties": {
229226
"name": {
230227
"type": "string",
@@ -248,7 +245,7 @@
248245
"hobbies": {
249246
"type": "array",
250247
"items": {
251-
"type": "object",
248+
"type": "object",
252249
"properties": {
253250
"name": {
254251
"type": "string",
@@ -262,14 +259,14 @@
262259
}
263260
}
264261
}
265-
262+
266263
}
267264
},
268265
"references": {
269266
"type": "array",
270267
"description": "List references you have received",
271268
"items": {
272-
"type": "object",
269+
"type": "object",
273270
"properties": {
274271
"name": {
275272
"type": "string",
@@ -280,7 +277,7 @@
280277
"description": "e.g. Joe blogs was a great employee, who turned up to work at least once a week. He exceeded my expectations when it came to doing nothing."
281278
}
282279
}
283-
280+
284281
}
285282
}
286283
}

0 commit comments

Comments
 (0)