-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathschema.json
60 lines (60 loc) · 2.57 KB
/
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
{
"title": "Workshops",
"description": "An object containing a year's worth of workshops.",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/utmgdsc/workshops/blob/main/schema.json",
"patternProperties": {
"^.*$": {
"description": "The category name, e.g., \"Web Development\", \"Machine Learning\", etc.",
"type": "array",
"items": {
"description": "The metadata of a workshop.",
"type": "object",
"properties": {
"name": {
"description": "The name of the workshop.",
"type": "string"
},
"host": {
"description": "An array of the names of the hosts of the workshop.",
"items": {
"type": "string"
},
"type": "array"
},
"description": {
"description": "The description of the workshop, e.g., it could be from an Instagram caption or announcement.",
"type": "string"
},
"date": {
"description": "The date of the workshop in MM-DD format, since the year is already specified in the file path.",
"type": "string",
"pattern": "^([0][1-9]|[[1][0-2])-([0-2][0-9]|3[0-1])$"
},
"code": {
"description": "The URL to the starter code code of the workshop.",
"type": "string",
"format": "uri"
},
"slides": {
"description": "The filename of the slides of the workshop. The slides must be in the same directory as the metadata.yml file.",
"type": "string"
},
"recording": {
"description": "The URL to the recording of the workshop.",
"type": "string",
"format": "uri"
}
},
"additionalProperties": false,
"required": [
"name",
"host",
"description",
"date"
]
},
"additionalProperties": false
}
}
}