-
Notifications
You must be signed in to change notification settings - Fork 0
/
fahrplan.schema.json
113 lines (113 loc) · 3.37 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
{
"$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": {
"type": "string",
"description": "Schema Version number, currently 0.5.0; semantic versioning applies"
},
"sessions": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"start",
"end",
"cancelled",
"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"
},
"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" },
"facebook": { "type": "string" },
"twitter": { "type": "string" },
"youtube": { "type": "string" },
"instagram": { "type": "string" },
"xing": { "type": "string" },
"linkedIn": { "type": "string" }
}
}
}
},
"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
}
}
},
"description": {
"type": "object",
"properties": {
"short": { "type": "string" },
"long": { "type": "string" }
}
},
"links": {
"type": "object",
"properties": {
"event": { "type": "string" }
}
}
}
}
}
}
}