forked from ivancea/mac-renderer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mac-schema.json
1057 lines (1057 loc) · 36.1 KB
/
mac-schema.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "http://github.com/manfred/mac/schema.json",
"type": "object",
"title": "Manfred Awesomic CV",
"description": "An open CV format",
"properties": {
"settings": {
"type": "object",
"description": "CV Settings",
"properties": {
"language": {
"type": "string",
"description": "The language of the CV expressed as a [ISO 639-1 code](https://en.wikipedia.org/wiki/ISO_639-1)",
"examples": ["EN", "EN-US"],
"$comment": "TDB: link to a enum of ISO-639 codes in a external definition file"
},
"lastUpdate": {
"type": "string",
"description": "Last time the CV was updated",
"format": "date"
},
"MACVersion": {
"type": "string",
"description": "Schema version which validated the JSON",
"examples": ["0.2"]
}
},
"additionalProperties": false,
"required": ["language"]
},
"aboutMe": {
"type": "object",
"description": "Main data of the CV author",
"properties": {
"profile": {
"$ref": "#/$defs/person"
},
"relevantYearsOfExperience": {
"type": "number",
"description": "Relevant years of experience related with desired professional roles and goals."
},
"relevantLinks": {
"type": "array",
"additionalItems": false,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["linkedin", "github", "twitter", "website", "other"]
},
"URL": {
"type": "string",
"format": "uri"
},
"description": {
"type": "string"
}
},
"additionalProperties": false,
"required": ["type", "URL"]
}
},
"significativeRelationships": {
"type": "array",
"description": "Friends or colleagues with whom I have worked or not, whose relationship with me can help define me as a professional.",
"additionalItems": false,
"uniqueItems": true,
"items": {
"$ref": "#/$defs/person"
}
},
"interestingFacts": {
"type": "array",
"description": "Facts that define you: your IDE, your favorite books, your football team...",
"additionalItems": false,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"topic": {
"type": "string",
"examples": ["First computer", "My football team"]
},
"fact": {
"type": "string"
}
},
"additionalProperties": false,
"required": ["fact"]
}
},
"currentSalary": {
"type": "object",
"properties": {
"currency": {
"type": "string"
},
"amount": {
"type": "integer"
},
"relevantPerks": {
"type": "array",
"additionalItems": true,
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": ["currency", "amount"]
},
"noticePeriod": {
"type": "integer"
},
"recommendations": {
"type": "array",
"description": "Content I like and recommend that can help define me as a professional.",
"additionalItems": false,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"type": {
"$ref": "#/$defs/recommendationType"
},
"URL": {
"type": "string"
},
"authors": {
"type": "array",
"additionalItems": false,
"uniqueItems": true,
"items": {
"$ref": "#/$defs/person"
}
},
"summary": {
"type": "string"
}
},
"additionalProperties": false,
"required": ["title"]
}
}
},
"additionalProperties": false,
"required": ["profile"]
},
"experience": {
"type": "object",
"additionalProperties": true,
"allOf": [
{
"type": "object",
"properties": {
"jobs": {
"type": "array",
"additionalItems": false,
"uniqueItems": true,
"items": {
"type": "object",
"description": "Company, Public Institution, or NGO where you work or have worked for a salary.",
"properties": {
"organization": {
"$ref": "#/$defs/publicEntityDetails"
},
"type": {
"$ref": "#/$defs/organizationType"
},
"roles": {
"type": "array",
"additionalItems": false,
"minItems": 1,
"items": {
"$ref": "#/$defs/role"
}
}
},
"additionalProperties": true,
"$comment": "TBD Refactor to extract the entity \"organization\" to a common definitions file.",
"required": ["organization", "roles"]
}
}
},
"additionalProperties": true
},
{
"type": "object",
"properties": {
"projects": {
"type": "array",
"additionalItems": false,
"minContains": 1,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"details": {
"$ref": "#/$defs/publicEntityDetails"
},
"type": {
"$ref": "#/$defs/projectType"
},
"roles": {
"type": "array",
"additionalItems": false,
"items": {
"$ref": "#/$defs/role"
}
}
},
"additionalProperties": false,
"required": ["roles"]
}
}
},
"additionalProperties": true
},
{
"type": "object",
"properties": {
"publicArtifacts": {
"type": "array",
"additionalItems": false,
"minContains": 1,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"details": {
"$ref": "#/$defs/publicEntityDetails"
},
"type": {
"$ref": "#/$defs/publicArtifactType"
},
"publishingDate": {
"type": "string",
"format": "date"
},
"relatedCompetences": {
"type": "array",
"additionalItems": false,
"minContains": 1,
"items": {
"$ref": "#/$defs/competence"
}
},
"tags": {
"$ref": "#/$defs/tags"
}
},
"additionalProperties": false,
"required": ["details"]
}
}
},
"additionalProperties": true
}
]
},
"knowledge": {
"type": "object",
"properties": {
"languages": {
"type": "array",
"additionalItems": false,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "A language expressed as a [ISO 639-1 code](https://en.wikipedia.org/wiki/ISO_639-1)",
"examples": ["EN"]
},
"level": {
"type": "string",
"enum": [
"Elementary proficiency",
"Limited working proficiency",
"Professional working proficiency",
"Full professional proficiency",
"Native or bilingual proficiency"
],
"$comment": "TBD make it required."
}
},
"additionalProperties": false,
"required": ["name"],
"dependentRequired": {
"level": ["name"]
}
}
},
"hardSkills": {
"type": "array",
"description": "hardSkills are a subset of competence types (tool, technology or hardware).",
"additionalItems": false,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"skill": {
"$ref": "#/$defs/competence"
},
"level": {
"type": "string",
"enum": ["basic", "intermediate", "high", "expert"]
}
},
"additionalProperties": false
}
},
"softSkills": {
"type": "array",
"description": "softSkills are a subset of competence types (practice or domain)",
"additionalItems": false,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"skill": {
"$ref": "#/$defs/competence"
},
"level": {
"type": "string",
"enum": ["basic", "intermediate", "high", "expert"]
}
},
"additionalProperties": false
}
},
"studies": {
"type": "array",
"additionalItems": false,
"minContains": 1,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"studyType": {
"$ref": "#/$defs/studyType"
},
"degreeAchieved": {
"type": "boolean",
"description": "If studies finished achieving the linked degree"
},
"name": {
"type": "string",
"examples": ["Software Engineering", "Certified ScrumMaster"]
},
"description": {
"type": "string",
"examples": ["Computer Science Grade"]
},
"startDate": {
"type": "string",
"description": "date when studies started in format yyyy-mm-dd",
"format": "date"
},
"finishDate": {
"type": "string",
"description": "date when studies finished (if finished), with or without obtaining a degree, in format yyyy-mm-dd",
"format": "date"
},
"institution": {
"$ref": "#/$defs/publicEntityDetails"
},
"linkedCompetences": {
"type": "array",
"additionalItems": false,
"minContains": 1,
"items": {
"$ref": "#/$defs/competence"
}
}
},
"additionalProperties": false,
"required": ["studyType", "degreeAchieved", "name", "startDate"]
}
}
},
"additionalProperties": false
},
"careerPreferences": {
"type": "object",
"properties": {
"contact": {
"$ref": "#/$defs/contactMean"
},
"status": {
"type": "string",
"enum": ["openToOffers", "searchingActively", "notAvailable"]
},
"requirements": {
"type": "object",
"properties": {
"compensation": {
"type": "object",
"properties": {
"salary": {
"type": "object",
"properties": {
"currency": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"examples": ["USD", "EUR", "CNY"],
"$comment": "TBD refactor to validate against an enum based on ISO 4217 currency codes."
},
"from": {
"type": "integer",
"examples": [50000]
},
"upto": {
"type": "integer",
"examples": [100000]
},
"comments": {
"type": "string"
}
},
"additionalProperties": false,
"required": ["currency", "from"]
},
"equity": {
"type": "object",
"properties": {
"mustHave": {
"type": "boolean",
"description": "If equity is a must have to accept a new position"
},
"from": {
"type": "number",
"examples": [1.5, 0.3, 30]
},
"upto": {
"type": "number",
"examples": [10]
},
"comments": {
"type": "string",
"examples": [""]
}
},
"additionalProperties": false,
"required": ["mustHave", "from"]
},
"perks": {
"type": "object",
"additionalProperties": true,
"allOf": [
{
"type": "object",
"properties": {
"mustHave": {
"type": "array",
"description": "Perks a new position must have to be considered",
"additionalItems": false,
"uniqueItems": true,
"items": {
"type": "string",
"examples": ["Health Insurance"],
"$comment": "TBD to be validated against an external enumeration of perks"
}
}
},
"additionalProperties": true
},
{
"type": "object",
"properties": {
"niceToHave": {
"type": "array",
"description": "Perks a new position should have to be considered",
"additionalItems": false,
"uniqueItems": true,
"items": {
"type": "string",
"examples": ["Free Meals"],
"$comment": "TBD to be validated against an external enumeration of perks"
}
}
},
"additionalProperties": true
}
]
}
},
"additionalProperties": false,
"required": ["salary"]
},
"contractTypes": {
"type": "array",
"additionalItems": false,
"uniqueItems": true,
"items": {
"$ref": "#/$defs/contractType"
}
},
"location": {
"type": "object",
"properties": {
"remoteOnly": {
"type": "boolean",
"default": false
},
"openToRelocate": {
"type": "boolean",
"default": false
},
"openToRemote": {
"type": "boolean",
"default": true
},
"workingAreas": {
"type": "array",
"additionalItems": false,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"location": {
"$ref": "#/$defs/location"
},
"distanceFromMunicipality": {
"type": "object",
"properties": {
"unit": {
"type": "string",
"description": "Unit of measure, Kilometers or Miles",
"enum": ["Km", "Mi"]
},
"amount": {
"type": "integer",
"examples": [20]
}
},
"additionalProperties": false,
"required": ["unit", "amount"]
}
},
"additionalProperties": false
}
},
"comments": {
"type": "string",
"examples": [
"I don't want to work in the Financial District. There are no decent donuts shops"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"preferences": {
"type": "object",
"properties": {
"preferredCompetences": {
"type": "array",
"description": "Skills, tools, domains or methodologies I like to work with",
"additionalItems": false,
"minContains": 1,
"uniqueItems": true,
"items": {
"$ref": "#/$defs/competence"
}
},
"discardedCompetences": {
"type": "array",
"description": "Skills, tools, domains or methodologies I don't like to work with",
"additionalItems": false,
"uniqueItems": true,
"items": {
"$ref": "#/$defs/competence"
}
},
"preferredOrganizations": {
"type": "array",
"description": "Type of organizations where I want to work",
"additionalItems": false,
"uniqueItems": true,
"items": {
"$ref": "#/$defs/organizationType"
}
},
"discardedOrganizations": {
"type": "array",
"description": "Type of organizations where I don't want to work",
"additionalItems": false,
"uniqueItems": true,
"items": {
"$ref": "#/$defs/organizationType"
}
},
"preferredRoles": {
"type": "array",
"additionalItems": false,
"uniqueItems": true,
"items": {
"type": "string",
"examples": ["Product Manager", "Chef", "Teacher"]
}
},
"discardedRoles": {
"type": "array",
"description": "Type of roles I don't like to adopt",
"additionalItems": false,
"uniqueItems": true,
"items": {
"type": "string",
"examples": ["Project Manager", "CIO"]
}
}
},
"additionalProperties": false
},
"goals": {
"type": "array",
"description": "Personal and Professional goals to match with company needs and requirements.",
"additionalItems": false,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"examples": [
"Learn German",
"Become Team Leader",
"Work in a Silicon Valley Company"
]
},
"description": {
"type": "string",
"examples": [
"Write and speak German fluently",
"Manage people, resources and goals",
"Work in a startup "
]
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"additionalProperties": true,
"required": ["settings", "aboutMe"],
"$defs": {
"competence": {
"type": "object",
"description": "Any competence used to complete professional tasks (tools proficiency as \"Excel\", technologies mastered as \"JAVA\", practices learned as \"TDD\", hardware you know how to handle as vehicles or construction tools, and know-how domains as \"banking\" or \"russia\")",
"properties": {
"name": {
"type": "string",
"examples": ["Excel", "JAVA", "TDD", "Class 8 trucks", "banking"]
},
"type": {
"type": "string",
"enum": ["tool", "technology", "practice", "hardware", "domain"]
},
"description": {
"type": "string",
"examples": [
"Formule modeling and complex calculations",
"Web apps developing",
"Writing tests first and then coding to pass then",
"Driving 15-wheeler over the country",
"Experience in the financial sector"
]
}
},
"additionalProperties": false,
"required": ["name", "type"]
},
"contactMean": {
"type": "object",
"description": "A way to contact a specific person",
"additionalProperties": true,
"anyOf": [
{
"type": "object",
"properties": {
"publicProfiles": {
"type": "array",
"description": "Online services that provide a way to contact a person without exposing mail or phone number.",
"additionalItems": false,
"minContains": 1,
"uniqueItems": true,
"minItems": 1,
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["manfred", "linkedin", "stackoverflow", "xing", "other"],
"$comment": "TBD Refactor to extract the enumeration \"public link type\" to a common definition file, to be completed with more external services."
},
"URL": {
"type": "string",
"format": "uri",
"examples": [
"https://www.getmanfred.com/mac/david",
"https://www.linkedin.com/in/satyanadella/"
]
}
},
"additionalProperties": false,
"required": ["type", "URL"]
}
}
},
"additionalProperties": true,
"required": ["publicProfiles"]
},
{
"type": "object",
"properties": {
"phoneNumbers": {
"type": "array",
"additionalItems": false,
"minContains": 1,
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"countryCode": {
"type": "number",
"description": "Country calling code as defined in International Telecommunication Union (ITU) standards E.123 and E.164.",
"examples": [34, 1]
},
"number": {
"type": "string",
"examples": ["616100584", "(555) 555-1234"],
"$comment": "TBD refactor to validate the phone number depending on the Country Code"
}
},
"additionalProperties": false,
"required": ["countryCode", "number"]
}
}
},
"additionalProperties": true,
"required": ["phoneNumbers"]
},
{
"type": "object",
"properties": {
"contactMails": {
"type": "array",
"additionalItems": false,
"minContains": 1,
"uniqueItems": true,
"minItems": 1,
"items": {
"type": "string",
"format": "email",
"examples": ["your.name@mail.com"]
}
}
},
"additionalProperties": true,
"required": ["contactMails"]
}
],
"$comment": "TBD Same component used in significativeRelationships and careerPreferences/contact (to be refactor to a common definition)"
},
"image": {
"type": "object",
"description": "picture, thumbnail or avatar",
"properties": {
"alt": {
"type": "string",
"description": "Alternative description of the image",
"examples": ["picture of Mike Gomez"]
}
},
"additionalProperties": true,
"oneOf": [
{
"type": "object",
"description": "A link to the image",
"properties": {
"link": {
"type": "string",
"format": "uri",
"examples": [
"https://images.assetsdelivery.com/compings_v2/thesomeday123/thesomeday1231709/thesomeday123170900021.jpg"
]
}
},
"additionalProperties": true,
"required": ["link"]
},
{
"type": "object",
"description": "Image data encoded in base64",
"properties": {
"data": {
"type": "string",
"examples": [
"iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAApgAAAKYB3X3/OAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAANCSURBVEiJtZZPbBtFFMZ/M7ubXdtdb1xSFyeilBapySVU8h8OoFaooFSqiihIVIpQBKci6KEg9Q6H9kovIHoCIVQJJCKE1ENFjnAgcaSGC6rEnxBwA04Tx43t2FnvDAfjkNibxgHxnWb2e/u992bee7tCa00YFsffekFY+nUzFtjW0LrvjRXrCDIAaPLlW0nHL0SsZtVoaF98mLrx3pdhOqLtYPHChahZcYYO7KvPFxvRl5XPp1sN3adWiD1ZAqD6XYK1b/dvE5IWryTt2udLFedwc1+9kLp+vbbpoDh+6TklxBeAi9TL0taeWpdmZzQDry0AcO+jQ12RyohqqoYoo8RDwJrU+qXkjWtfi8Xxt58BdQuwQs9qC/afLwCw8tnQbqYAPsgxE1S6F3EAIXux2oQFKm0ihMsOF71dHYx+f3NND68ghCu1YIoePPQN1pGRABkJ6Bus96CutRZMydTl+TvuiRW1m3n0eDl0vRPcEysqdXn+jsQPsrHMquGeXEaY4Yk4wxWcY5V/9scqOMOVUFthatyTy8QyqwZ+kDURKoMWxNKr2EeqVKcTNOajqKoBgOE28U4tdQl5p5bwCw7BWquaZSzAPlwjlithJtp3pTImSqQRrb2Z8PHGigD4RZuNX6JYj6wj7O4TFLbCO/Mn/m8R+h6rYSUb3ekokRY6f/YukArN979jcW+V/S8g0eT/N3VN3kTqWbQ428m9/8k0P/1aIhF36PccEl6EhOcAUCrXKZXXWS3XKd2vc/TRBG9O5ELC17MmWubD2nKhUKZa26Ba2+D3P+4/MNCFwg59oWVeYhkzgN/JDR8deKBoD7Y+ljEjGZ0sosXVTvbc6RHirr2reNy1OXd6pJsQ+gqjk8VWFYmHrwBzW/n+uMPFiRwHB2I7ih8ciHFxIkd/3Omk5tCDV1t+2nNu5sxxpDFNx+huNhVT3/zMDz8usXC3ddaHBj1GHj/As08fwTS7Kt1HBTmyN29vdwAw+/wbwLVOJ3uAD1wi/dUH7Qei66PfyuRj4Ik9is+hglfbkbfR3cnZm7chlUWLdwmprtCohX4HUtlOcQjLYCu+fzGJH2QRKvP3UNz8bWk1qMxjGTOMThZ3kvgLI5AzFfo379UAAAAASUVORK5CYII="
]
},
"mediaType": {
"type": "string",
"enum": ["image/png", "image/jpeg"]
},
"encoding": {
"type": "string",
"const": "base64"
}
},
"additionalProperties": true,
"required": ["data", "mediaType", "encoding"]
}
],
"$comment": "TDB: to be refactor to extract an image \"object\" within a definitions section or schema"
},
"person": {
"type": "object",
"description": "A Person data",
"properties": {
"name": {
"type": "string",
"examples": ["Sharon", "Tatiana", "Goran"]
},
"surnames": {
"type": "string",
"description": "Surname o Surnames of the person",
"examples": ["Vlaovic-Sorensen", "Varoufakis", "Ahmed"]
},
"title": {
"type": "string",
"description": "Role, relationship or activity related to the person.",
"maxLength": 255,
"examples": ["My supervisor", "I work with her for 5 years"]
},
"description": {
"type": "string",
"examples": [
"Daniel was the perfect leader and he achieved all the goals assigned to the Departement but the most important thing is he's also a great colleague."
]
},
"birthday": {
"type": "string",
"description": "Person's birth date in format yyyy-mm-dd",
"format": "date",
"examples": ["1977-07-26"]
},
"avatar": {
"$ref": "#/$defs/image"
},
"contact": {
"$ref": "#/$defs/contactMean"
},
"location": {
"$ref": "#/$defs/location"
}
},
"additionalProperties": false,
"$comment": "TBD Same component used in rol/referrals, #/experience/jobs/organization/projects/project/referrals and significativeRelationships, to be refactor to a common definition.",
"required": ["name", "surnames", "title"]
},
"role": {
"type": "object",
"description": "roles developed within an organization",
"properties": {
"name": {
"type": "string",
"examples": ["Developer"]
},
"startDate": {
"type": "string",
"format": "date",
"examples": ["2019-06-20"]
},
"finishDate": {
"type": "string",
"format": "date",
"examples": ["2022-02-14"]
},
"challenges": {
"type": "array",
"additionalItems": false,
"minContains": 1,
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"actions": {
"type": "array",
"additionalItems": false,
"minContains": 1,
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": ["description"]
}
},
"competences": {
"type": "array",
"additionalItems": false,
"uniqueItems": true,
"items": {
"$ref": "#/$defs/competence"
}
},
"referrals": {
"type": "array",
"additionalItems": false,
"uniqueItems": true,
"$comment": "Professional Referrals about my activity in one specific rol.",
"items": {
"$ref": "#/$defs/person"
}
},
"notes": {
"type": "string",
"description": "Notes and information about the role"
}
},
"additionalProperties": false,
"required": ["name", "startDate"]
},
"location": {
"type": "object",
"properties": {
"country": {
"type": "string",
"description": "Country where you live",
"examples": ["US"],
"$comment": "TDB: link to a enum of ISO-3166 codes in a external definition file"
},
"region": {
"type": "string",
"description": "Region (State, Länder, County, Community...) where you live.",
"examples": ["California", "Galicia", "Bayern", "Hampshire"],
"$comment": "TBD It could be validated depending on the Country value."
},
"municipality": {
"type": "string",
"description": "City or town where you live.",
"examples": ["San Francisco", "A Coruña", "Hamburg", "La Rochelle"],
"$comment": "TBD It could be validated depending on the Country/Region values."
},
"postalCode": {
"type": "string",
"examples": ["90001", "SW1W 0NY", "15001"]
},
"address": {
"type": "string",
"examples": ["", "33 West 23rd Street, 2nd Floor", "Rua Emilia Pardo Bazán 18, 6ºB"]
},
"notes": {
"type": "string",
"examples": ["Please, use the security code '6535' to get access to the mail boxes."]
}
},
"additionalProperties": false
},
"publicEntityDetails": {
"type": "object",
"description": "Organization, Company, Institution, Administration, Project or Initiative related to my career.",
"properties": {
"name": {
"type": "string",
"examples": ["Stanford University", "IBM", "Project Management Institute"]
},
"description": {
"type": "string"
},
"URL": {
"type": "string",
"format": "uri",
"examples": ["https://www.stanford.edu/"]
},
"image": {
"$ref": "#/$defs/image"
},
"location": {
"$ref": "#/$defs/location"