-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfahrplan.schema.json
145 lines (145 loc) · 4.34 KB
/
fahrplan.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"$id": "https://wueww.github.io/fahrplan-schema/fahrplan.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "WueWW Fahrplan Schema",
"type": "object",
"properties": {
"format": {
"const": "0.5.2",
"description": "Schema Version number, currently 0.5.2; semantic versioning applies"
},
"channels": {
"type": "array",
"items": { "$ref": "#/definitions/channel" }
},
"sessions": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"start",
"end",
"cancelled",
"highlight",
"onlineOnly",
"host",
"title"
],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the session"
},
"start": {
"type": "string",
"format": "date-time"
},
"end": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{ "type": "null", "description": "the session is open-ended" }
]
},
"cancelled": {
"type": "boolean",
"description": "whether the event has been cancelled explicitly; users may wish to display the information stroked out or else as applicable"
},
"highlight": {
"type": "boolean",
"description": "whether the event has been flagged as highlight"
},
"onlineOnly": {
"type": "boolean",
"description": "whether the event is online only; online only events do not have location information"
},
"host": {
"type": "object",
"required": ["id", "name"],
"properties": {
"id": {
"type": "integer",
"description": "Unique identifier of the session"
},
"name": { "type": "string" },
"infotext": { "type": "string" },
"logo": { "type": "string" },
"links": {
"type": "object",
"properties": {
"host": { "type": "string" },
"jobs": { "type": "string" },
"facebook": { "type": "string" },
"twitter": { "type": "string" },
"youtube": { "type": "string" },
"instagram": { "type": "string" },
"xing": { "type": "string" },
"linkedIn": { "type": "string" },
"fediverseUrl": { "type": "string" }
},
"additionalProperties": false
}
}
},
"title": { "type": "string" },
"location": {
"type": "object",
"required": ["name", "streetNo", "zipcode", "city"],
"properties": {
"name": { "type": "string" },
"streetNo": { "type": "string" },
"zipcode": { "type": "string" },
"city": { "type": "string" },
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90
},
"lng": {
"type": "number",
"minimum": -180,
"maximum": 180
}
},
"additionalProperties": false
},
"description": {
"type": "object",
"properties": {
"short": { "type": "string" },
"long": { "type": "string" }
},
"additionalProperties": false
},
"links": {
"type": "object",
"properties": {
"event": { "type": "string" }
},
"additionalProperties": false
},
"channel": {
"$ref": "#/definitions/channel"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false,
"required": ["format", "channels", "sessions"],
"definitions": {
"channel": {
"type": "object",
"properties": {
"id": { "type": "integer" },
"name": { "type": "string" }
},
"required": ["id", "name"],
"additionalProperties": false
}
}
}