@jsonresume/schema 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/job-schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "additionalProperties": true,
4
4
  "definitions": {
5
5
  "iso8601": {
@@ -68,7 +68,6 @@
68
68
  "responsibilities": {
69
69
  "type": "array",
70
70
  "description": "what the job entails",
71
- "additionalItems": false,
72
71
  "items": {
73
72
  "type": "string",
74
73
  "description": "e.g. Build out a new API for our customer base."
@@ -77,7 +76,6 @@
77
76
  "qualifications": {
78
77
  "type": "array",
79
78
  "description": "List out your qualifications",
80
- "additionalItems": false,
81
79
  "items": {
82
80
  "type": "string",
83
81
  "description": "undergraduate degree, etc. "
@@ -86,7 +84,6 @@
86
84
  "skills": {
87
85
  "type": "array",
88
86
  "description": "List out your professional skill-set",
89
- "additionalItems": false,
90
87
  "items": {
91
88
  "type": "object",
92
89
  "additionalProperties": true,
@@ -102,7 +99,6 @@
102
99
  "keywords": {
103
100
  "type": "array",
104
101
  "description": "List some keywords pertaining to this skill",
105
- "additionalItems": false,
106
102
  "items": {
107
103
  "type": "string",
108
104
  "description": "e.g. HTML"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsonresume/schema",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "JSON Resume Schema",
5
5
  "private": false,
6
6
  "main": "validator.js",
@@ -25,7 +25,9 @@
25
25
  "jsonschema": "^1.4.1"
26
26
  },
27
27
  "devDependencies": {
28
+ "ajv": "^8.17.1",
28
29
  "ajv-cli": "^3.3.0",
30
+ "ajv-formats": "^3.0.1",
29
31
  "json-metaschema": "^1.3.0",
30
32
  "tap-spec": "^5.0.0",
31
33
  "tape": "^4.16.2"
@@ -35,7 +37,7 @@
35
37
  },
36
38
  "scripts": {
37
39
  "test": "npm run validate && npm run test-units",
38
- "validate": "ajv validate -s node_modules/json-metaschema/draft-07-schema -d schema",
40
+ "validate": "ajv validate -s node_modules/json-metaschema/draft-07-schema -d schema -d job-schema",
39
41
  "test-units": "tape **/*.spec.js | tap-spec"
40
42
  }
41
43
  }
package/schema.json CHANGED
@@ -75,7 +75,6 @@
75
75
  "profiles": {
76
76
  "type": "array",
77
77
  "description": "Specify any number of social networks that you participate in",
78
- "additionalItems": false,
79
78
  "items": {
80
79
  "type": "object",
81
80
  "additionalProperties": true,
@@ -100,7 +99,6 @@
100
99
  },
101
100
  "work": {
102
101
  "type": "array",
103
- "additionalItems": false,
104
102
  "items": {
105
103
  "type": "object",
106
104
  "additionalProperties": true,
@@ -139,7 +137,6 @@
139
137
  "highlights": {
140
138
  "type": "array",
141
139
  "description": "Specify multiple accomplishments",
142
- "additionalItems": false,
143
140
  "items": {
144
141
  "type": "string",
145
142
  "description": "e.g. Increased profits by 20% from 2011-2012 through viral advertising"
@@ -150,7 +147,6 @@
150
147
  },
151
148
  "volunteer": {
152
149
  "type": "array",
153
- "additionalItems": false,
154
150
  "items": {
155
151
  "type": "object",
156
152
  "additionalProperties": true,
@@ -181,7 +177,6 @@
181
177
  "highlights": {
182
178
  "type": "array",
183
179
  "description": "Specify accomplishments and achievements",
184
- "additionalItems": false,
185
180
  "items": {
186
181
  "type": "string",
187
182
  "description": "e.g. Increased profits by 20% from 2011-2012 through viral advertising"
@@ -192,7 +187,6 @@
192
187
  },
193
188
  "education": {
194
189
  "type": "array",
195
- "additionalItems": false,
196
190
  "items": {
197
191
  "type": "object",
198
192
  "additionalProperties": true,
@@ -227,7 +221,6 @@
227
221
  "courses": {
228
222
  "type": "array",
229
223
  "description": "List notable courses/subjects",
230
- "additionalItems": false,
231
224
  "items": {
232
225
  "type": "string",
233
226
  "description": "e.g. H1302 - Introduction to American history"
@@ -239,7 +232,6 @@
239
232
  "awards": {
240
233
  "type": "array",
241
234
  "description": "Specify any awards you have received throughout your professional career",
242
- "additionalItems": false,
243
235
  "items": {
244
236
  "type": "object",
245
237
  "additionalProperties": true,
@@ -265,7 +257,6 @@
265
257
  "certificates": {
266
258
  "type": "array",
267
259
  "description": "Specify any certificates you have received throughout your professional career",
268
- "additionalItems": false,
269
260
  "items": {
270
261
  "type": "object",
271
262
  "additionalProperties": true,
@@ -292,7 +283,6 @@
292
283
  "publications": {
293
284
  "type": "array",
294
285
  "description": "Specify your publications through your career",
295
- "additionalItems": false,
296
286
  "items": {
297
287
  "type": "object",
298
288
  "additionalProperties": true,
@@ -323,7 +313,6 @@
323
313
  "skills": {
324
314
  "type": "array",
325
315
  "description": "List out your professional skill-set",
326
- "additionalItems": false,
327
316
  "items": {
328
317
  "type": "object",
329
318
  "additionalProperties": true,
@@ -339,7 +328,6 @@
339
328
  "keywords": {
340
329
  "type": "array",
341
330
  "description": "List some keywords pertaining to this skill",
342
- "additionalItems": false,
343
331
  "items": {
344
332
  "type": "string",
345
333
  "description": "e.g. HTML"
@@ -351,7 +339,6 @@
351
339
  "languages": {
352
340
  "type": "array",
353
341
  "description": "List any other languages you speak",
354
- "additionalItems": false,
355
342
  "items": {
356
343
  "type": "object",
357
344
  "additionalProperties": true,
@@ -369,7 +356,6 @@
369
356
  },
370
357
  "interests": {
371
358
  "type": "array",
372
- "additionalItems": false,
373
359
  "items": {
374
360
  "type": "object",
375
361
  "additionalProperties": true,
@@ -380,7 +366,6 @@
380
366
  },
381
367
  "keywords": {
382
368
  "type": "array",
383
- "additionalItems": false,
384
369
  "items": {
385
370
  "type": "string",
386
371
  "description": "e.g. Friedrich Nietzsche"
@@ -392,7 +377,6 @@
392
377
  "references": {
393
378
  "type": "array",
394
379
  "description": "List references you have received",
395
- "additionalItems": false,
396
380
  "items": {
397
381
  "type": "object",
398
382
  "additionalProperties": true,
@@ -411,7 +395,6 @@
411
395
  "projects": {
412
396
  "type": "array",
413
397
  "description": "Specify career projects",
414
- "additionalItems": false,
415
398
  "items": {
416
399
  "type": "object",
417
400
  "additionalProperties": true,
@@ -427,7 +410,6 @@
427
410
  "highlights": {
428
411
  "type": "array",
429
412
  "description": "Specify multiple features",
430
- "additionalItems": false,
431
413
  "items": {
432
414
  "type": "string",
433
415
  "description": "e.g. Directs you close but not quite there"
@@ -436,7 +418,6 @@
436
418
  "keywords": {
437
419
  "type": "array",
438
420
  "description": "Specify special elements involved",
439
- "additionalItems": false,
440
421
  "items": {
441
422
  "type": "string",
442
423
  "description": "e.g. AngularJS"
@@ -456,7 +437,6 @@
456
437
  "roles": {
457
438
  "type": "array",
458
439
  "description": "Specify your role on this project or in company",
459
- "additionalItems": false,
460
440
  "items": {
461
441
  "type": "string",
462
442
  "description": "e.g. Team Lead, Speaker, Writer"