-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathschema.yaml
251 lines (251 loc) · 7.21 KB
/
schema.yaml
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
$schema: http://json-schema.org/draft-04/schema#
type: object
additionalProperties: false
properties:
cities:
type: object
additionalProperties: false
patternProperties:
'^[-a-z0-9]+$':
type: object
additionalProperties: false
properties:
city:
type: object
additionalProperties: false
properties:
name:
type: string
location:
$ref: '#/definitions/location'
_source:
type: string
venues:
type: object
additionalProperties: false
patternProperties:
'^[-a-z0-9]+$':
type: object
additionalProperties: false
properties:
address:
type: string
city:
type: string
location:
$ref: '#/definitions/location'
name:
type: string
notes:
type: string
format: markdown
_source:
type: string
required:
- city
- location
- name
required:
- city
series:
type: object
additionalProperties: false
patternProperties:
'^[-a-z0-9]+$':
type: object
additionalProperties: false
properties:
series:
type: object
additionalProperties: false
properties:
name:
type: string
city:
type: string
description:
$ref: '#/definitions/string-translations'
organizer-info:
type: array
items:
type: object
additionalProperties: false
properties:
name:
type: string
mail:
type: string
format: email
phone:
type: string
web:
$ref: '#/definitions/uri'
required:
- name
recurrence:
type: object
additionalProperties: false
properties:
description:
$ref: '#/definitions/string-translations'
scheme:
enum:
- monthly
- weekly
rrule:
type: string
pattern: '^((R|EX)RULE:[-=A-Z0-9;]*(\n|$))*'
required:
- description
- scheme
- rrule
_source:
type: string
required:
- name
- city
events:
type: object
additionalProperties: false
patternProperties:
'^[0-9]{4}-[0-9]{2}-[0-9]{2}(-[-_a-zA-Z0-9]*)?$':
type: object
additionalProperties: false
properties:
name:
type: string
start:
oneOf:
- format: date-time
- format: date
city:
type: string
pattern: '^[-a-z0-9]+$'
venue:
type: string
pattern: '^[-a-z0-9]+$'
venue-notes:
type: string
format: markdown
description:
type: string
format: markdown
talks:
type: array
items:
type: object
additionalProperties: false
properties:
title:
type: string
description:
type: string
format: markdown
speakers:
type: array
items:
type: string
urls:
type: array
items:
type: string
format: uri
coverage:
type: array
items:
type: object
additionalProperties: false
minProperties: 1
maxProperties: 1
properties:
slides:
$ref: '#/definitions/uri'
link:
$ref: '#/definitions/uri'
video:
$ref: '#/definitions/uri'
writeup:
$ref: '#/definitions/uri'
notes:
$ref: '#/definitions/uri'
lightning:
const: true
language:
type: object
additionalProperties: false
properties:
slides:
$ref: '#/definitions/language-code'
audio:
$ref: '#/definitions/language-code'
required:
- title
topic:
type: string
urls:
type: array
items:
type: string
format: uri
number:
type: integer
_source:
type: string
required:
- name
- city
- talks
meta:
type: object
additionalProperties: false
properties:
_source:
type: string
version:
type: integer
ignored_files:
type: array
items:
type: string
schema:
$ref: http://json-schema.org/draft-04/schema#
required:
- cities
- series
- schema
- meta
definitions:
nope:
not: {}
geo-coordinate:
type: string
pattern: '^-?[0-9]+\.[0-9]+$'
location:
type: object
additionalProperties: false
properties:
latitude:
$ref: '#/definitions/geo-coordinate'
longitude:
$ref: '#/definitions/geo-coordinate'
string-translations:
type: object
additionalProperties: false
properties:
cs:
type: string
en:
type: string
required:
- cs
- en
uri:
type: string
format: uri
language-code:
type: string
pattern: '^[a-zA-Z]{2,3}([-\/][a-zA-Z]{2,3})?$'
examples:
- "cs"
- "en"
- "sk"