-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathevents.schema.json
95 lines (95 loc) · 3.12 KB
/
events.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Events",
"description": "This document describes the fields in the events.json file.",
"type": "array",
"items": {
"type": "object",
"required": [
"eventDate",
"eventStartTime",
"eventOrgShort",
"eventOrgType",
"eventTitle",
"eventLocationName",
"eventWeb"
],
"properties": {
"eventDate": {
"description": "The day and date on which the event takes place. (ex: \"Thu, 12/1\")",
"type": "string",
"pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d\\d?\\/\\d\\d?(\\/(\\d\\d)?\\d\\d)?$"
},
"eventStartTime": {
"description": "The time at which the event starts. (ex: \"7:00 PM\")",
"type": "string",
"pattern": "^\\d\\d?:\\d\\d (AM|PM)$"
},
"eventEndTime": {
"description": "The time at which the event ends.",
"type": "string",
"pattern": "^\\d\\d?:\\d\\d (AM|PM)$"
},
"eventOrgShort": {
"description": "Short name for the organization hosting.",
"type": "string"
},
"eventOrgType": {
"description": "A descriptor of the organization type. (ex: \"LD\", \"County\", \"State\", \"Ally\")",
"enum": [
"State",
"County",
"LD",
"State Young",
"County Young",
"College Young",
"HS Young",
"Caucus",
"CD",
"Candidate",
"Ally"
]
},
"eventTitle": {
"description": "A title for the event. Please do NOT include the name of the organization hosting the event.",
"type": "string"
},
"eventLocationName": {
"description": "Name of the location where the event will be held. (ex: \"Yakima County Democrats office\", \"Mercer Island Community Center\", \"Home of John Smith\")",
"type": "string"
},
"eventLocationStreet": {
"description": "Street address for the event location. (ex: \"123 Main St.\")",
"type": "string"
},
"eventLocationCity": {
"description": "City for the event location (ex: \"Wenatchee\")",
"type": "string"
},
"eventLocationST": {
"description": "Two-letter state abberviation for the event location (ex: \"WA\")",
"type": "string",
"maxLength": 2
},
"eventLocationZip": {
"description": "ZIP code for the event location (ex: \"98040\")",
"type": "string",
"pattern": "^(|\\d{5}|\\d{5}-\\d{4})$"
},
"eventWeb": {
"description": "Web address where visitors can find more information about this event.",
"type": "string",
"format": "uri"
},
"eventFbId": {
"description": "Facebook ID for this event (ex: \"1811175945791682\")",
"type": "string",
"pattern": "^\\d+$"
},
"eventDescription": {
"description": "Additional details about this event. (ex: \"Doors open at 6pm and program starts at 7pm\", \"Dinner will be served\", \"Suggested $20 donation\")",
"type": "string"
}
}
}
}