-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtime_set_definitions.schema.json
101 lines (101 loc) · 2.97 KB
/
time_set_definitions.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
96
97
98
99
100
101
{
"primaryKey": "timeday_id",
"missingValues": [
"NaN",
""
],
"fieldsMatch": "subset",
"fields": [
{
"name": "timeday_id",
"type": "any",
"description": "Primary key.Primary key, similar to `service_id` in GTFS. Unique name of the time of day. Preferable legible rather than a number.",
"constraints": {
"required": true
}
},
{
"name": "monday",
"type": "boolean",
"description": "Required. Whether Mondays are included.",
"constraints": {
"required": true
}
},
{
"name": "tuesday",
"type": "boolean",
"description": "Required. Whether Tuesdays are included.",
"constraints": {
"required": true
}
},
{
"name": "wednesday",
"type": "boolean",
"description": "Required. Whether Wednesdays are included.",
"constraints": {
"required": true
}
},
{
"name": "thursday",
"type": "boolean",
"description": "Required. Whether Thursdays are included.",
"constraints": {
"required": true
}
},
{
"name": "Friday",
"type": "boolean",
"description": "Required. Whether Fridays are included.",
"constraints": {
"required": true
}
},
{
"name": "saturday",
"type": "boolean",
"description": "Required. Whether Saturdays are included.",
"constraints": {
"required": true
}
},
{
"name": "sunday",
"type": "boolean",
"description": "Required. Whether Sundays are included.",
"constraints": {
"required": true
}
},
{
"name": "holiday",
"type": "boolean",
"description": "Required. Whether holidays are included.",
"constraints": {
"required": true
}
},
{
"name": "start_time",
"type": "time",
"description": "Required. Start time in HH:MM format.",
"constraints": {
"required": true
}
},
{
"name": "end_time",
"type": "time",
"description": "Required. End time in HH:MM format.",
"constraints": {
"required": true
}
}
],
"name": "time_set_definitions.schema.json",
"description": "The time_set_definitions file is an optional representation of time-of-day and day-of-week sets to enable time restrictions through `_tod` files.",
"$schema": "https://datapackage.org/profiles/2.0/tableschema.json"
}