Skip to content

Commit 9adb1a8

Browse files
authored
Update ambassadors-schema.json
Updated schema version,added description to each field,expanded list of Type of contributions and made Linked and Twitter not mandatory
1 parent fa09281 commit 9adb1a8

File tree

1 file changed

+35
-20
lines changed

1 file changed

+35
-20
lines changed
Lines changed: 35 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,92 @@
11
{
2-
"$schema": "http://json-schema.org/draft-07/schema#",
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"type": "array",
4+
"description": "Array of contributor profiles",
45
"items": {
56
"type": "object",
7+
"description": "Contributor profile",
68
"properties": {
79
"name": {
8-
"type": "string"
10+
"type": "string",
11+
"description": "Full name of the contributor"
912
},
1013
"img": {
1114
"type": "string",
12-
"format": "uri"
15+
"format": "uri",
16+
"description": "URL to the contributor's profile image"
1317
},
1418
"bio": {
15-
"type": "string"
19+
"type": "string",
20+
"description": "Brief biography of the contributor"
1621
},
1722
"title": {
18-
"type": "string"
23+
"type": "string",
24+
"description": "Professional title of the contributor"
1925
},
2026
"github": {
21-
"type": "string"
27+
"type": "string",
28+
"description": "GitHub profile URL of the contributor"
2229
},
2330
"twitter": {
24-
"type": "string"
31+
"type": "string",
32+
"description": "Twitter profile URL of the contributor"
2533
},
2634
"linkedin": {
27-
"type": "string"
35+
"type": "string",
36+
"description": "LinkedIn profile URL of the contributor"
2837
},
2938
"company": {
30-
"type": "string"
39+
"type": "string",
40+
"description": "Company where the contributor works"
3141
},
3242
"country": {
33-
"type": "string"
43+
"type": "string",
44+
"description": "Country where the contributor is based"
3445
},
3546
"contributions": {
3647
"type": "array",
48+
"description": "List of contributions made by the contributor",
3749
"items": {
3850
"type": "object",
51+
"description": "Details of a specific contribution",
3952
"properties": {
4053
"type": {
4154
"type": "string",
42-
"enum": ["article", "talk", "video", "other"]
55+
"enum": ["article", "talk", "video", "other", "book", "paper", "initiative", "project", "working group"],
56+
"description": "Type of the contribution"
4357
},
4458
"title": {
45-
"type": "string"
59+
"type": "string",
60+
"description": "Title of the contribution"
4661
},
4762
"date": {
4863
"type": "object",
64+
"description": "Date of the contribution",
4965
"properties": {
5066
"year": {
5167
"type": "integer",
5268
"minimum": 1900,
53-
"maximum": 2100
69+
"maximum": 2100,
70+
"description": "Year of the contribution"
5471
},
5572
"month": {
5673
"type": "string",
57-
"enum": [
58-
"January", "February", "March", "April", "May", "June",
59-
"July", "August", "September", "October", "November",
60-
"December"
61-
]
74+
"enum": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
75+
"description": "Month of the contribution"
6276
}
6377
},
6478
"required": ["year", "month"]
6579
},
6680
"link": {
6781
"type": "string",
68-
"format": "uri"
82+
"format": "uri",
83+
"description": "URL link to the contribution"
6984
}
7085
},
7186
"required": ["type", "title", "date", "link"]
7287
}
7388
}
7489
},
75-
"required": ["name", "img", "bio", "title", "github", "twitter", "linkedin", "company", "country", "contributions"]
90+
"required": ["name", "img", "bio", "title", "github", "company", "country", "contributions"]
7691
}
7792
}

0 commit comments

Comments
 (0)