-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcanteens.schema.json
68 lines (68 loc) · 2.37 KB
/
canteens.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"items": {
"type": "object",
"properties": {
"p": {
"type": "string",
"description": "MensaMax project (\"Projekt\") for this canteen.",
"examples": ["N111"]
},
"e": {
"type": "string",
"description": "MensaMax institution (\"Einrichtung\") for this canteen.",
"examples": ["Mensa"]
},
"provider": {
"type": "string",
"description": "MensaMax provider this canteen is on (MensaMax has some distinct systems under different URLs).",
"examples": [
"mensadigital.de",
"mensaservice.de",
"mensaonline.de",
"mensapoint.de",
"mensahome.de",
"mensaland.de",
"mensaweb.de",
"mensawelten.de",
"mensacity.de",
"mensaoffice.de",
"mammasmensa.de",
"mensalokal.de",
"mensastadt.de",
"mensahaus.de",
"parentsmensa.de",
"mensaaktiv.de",
"mensacenter.de",
"app.mensamax.de"
],
"not": {
"type": "string",
"description": "This MensaMax provider is unsupported.",
"pattern": "^mensa365.de$"
}
},
"name": {
"type": "string",
"description": "Human-readable name for the canteen (optional)."
},
"$comment": {
"type": "string",
"description": "Any notes for this canteen."
},
"om_id":{
"type": "integer",
"description": "ID of the canteen in OpenMensa if already created there."
},
"loc":{
"type": "string",
"description": "Location of the canteen (e.g. name of city/village/...)"
}
},
"required": ["p", "e", "provider"],
"additionalProperties": false
},
"additionalItems": false,
"uniqueItems": true
}