Skip to content

Commit 0a8a16e

Browse files
authored
Allow start_date, end_date, and URL in category schema (#1344)
Add start and end date fields as well as URL to the category schema. These properties are common across many categories supported here and already present in a handful of data files. This change also populates start and end date information based on the recording dates in video files for a couple of categories that have these fields present but do not pass the JSON Schema date format validation. References #268 and #1172.
1 parent 512623c commit 0a8a16e

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.schemas/category.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@
1313
"title":{
1414
"description":"Title of event where videos originated",
1515
"type":"string"
16+
},
17+
"url":{
18+
"description":"Canonical URL to the event website",
19+
"type":"string"
20+
},
21+
"start_date":{
22+
"description":"Start date of the event in YYYY-MM-DD format",
23+
"type":"string",
24+
"format":"date"
25+
},
26+
"end_date":{
27+
"description":"End date of the event in YYYY-MM-DD format",
28+
"type":"string",
29+
"format":"date"
1630
}
1731
},
1832
"required":[

djangocon-eu-2010/category.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"description": "",
3-
"start_date": null,
3+
"start_date": "2010-05-24",
4+
"end_date": "2010-05-26",
45
"title": "DjangoCon Europe 2010",
56
"url": ""
67
}

pygotham-2012/category.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"description": "",
3-
"start_date": null,
3+
"start_date": "2012-06-08",
4+
"end_date": "2012-06-08",
45
"title": "PyGotham 2012",
56
"url": ""
67
}

0 commit comments

Comments
 (0)