-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathschema.json
More file actions
46 lines (46 loc) · 1.66 KB
/
schema.json
File metadata and controls
46 lines (46 loc) · 1.66 KB
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CBW Workshop List Schema",
"description": "Defines the structure for the workshops.json file.",
"type": "array",
"items": {
"type": "object",
"properties": {
"url": { "type": "string", "format": "uri-reference" },
"title": { "type": "string", "minLength": 3 },
"instructors": {
"description": "A list of instructor names for the workshop.",
"type": "array",
"items": { "type": "string" }
},
"tags": { "type": "array", "items": { "type": "string" } },
"regions": {
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"enum": ["BC", "Alberta", "Prairies", "Ontario", "Quebec", "Atlantic", "Online"]
}
},
"year": {
"type": "number",
"minimum": 1999
},
"startDate": { "type": "string", "format": "date" },
"endDate": { "type": "string", "format": "date" },
"image": { "type": "string" },
"locations": {
"type": "array",
"minItems": 1,
"items": { "type": "string" }
},
"format": {
"type": "string",
"enum": ["Online", "In-person", "Distributed", "Flipped", "Asynchronous", "Hybrid"]
}
},
"required": [
"title", "tags", "regions", "year", "startDate", "endDate", "image", "locations", "format"
]
}
}