-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwizard_jsonschema.json
203 lines (203 loc) · 6.78 KB
/
wizard_jsonschema.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
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
{
"$schema": "https://json-schema.org/draft-07/schema",
"title": "ffwizard router description",
"description": "This schema describes the ffwizard-json v1.0",
"type": "object",
"properties": {
"version": {
"description": "This represents the version of the file format.",
"type": "string",
"pattern": "^1\\.0$"
},
"created": {
"type": "string",
"format": "date-time"
},
"contact": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"nickname": {
"type": "string"
},
"realname": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
},
"url": {
"description": "At default, config.berlin.freifunk.net will insert the link to the mail-form here.",
"type": "string",
"format": "uri"
}
},
"required": [
"url"
]
}
},
"node": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"community": {
"type": "string"
},
"location": {
"type": "object",
"properties": {
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
},
"description": {
"type": "string"
}
},
"required": [
"latitude",
"longitude"
]
},
"internet": {
"type": "object",
"properties": {
"share": {
"description": "Share the internet",
"type": "boolean"
},
"uplink-tunnel": {
"description": "Route internet traffic via tunneltype x. empty means notunnel.",
"type": "string"
},
"mesh-tunnel": {
"type": "string"
},
"download": {
"description": "Download bandwidth in kBit/s",
"type": "number",
"minimum": 1000
},
"upload": {
"description": "Upload bandwidth in kBit/s",
"type": "number",
"minimum": 1000
}
},
"required": [
"share",
"uplink-tunnel",
"mesh-tunnel",
"download",
"upload"
]
},
"monitoring": {
"type": "boolean"
},
"autoupdate": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"branch": {
"type": "string"
}
},
"required": [
"enabled",
"branch"
]
},
"ips": {
"type": "object",
"properties": {
"mesh": {
"type": "array",
"uniqueItems": true,
"minItems": 1,
"items": {
"description": "This string shouldn't be empty. shortest possible string has 9 chars: 0.0.0.0/0",
"type": "string",
"minLength": 9
}
},
"dhcp": {
"description": "This string shouldn't be empty. shortest possible string has 9 chars: 0.0.0.0/0",
"type": "string",
"minLength": 9
},
"ipv6": {
"description": "ipv6-network from that we get mesh and ip-address.",
"type": "string"
}
},
"required": [
"mesh",
"dhcp",
"ipv6"
]
}
},
"required": [
"name",
"ips"
]
},
"interfaces": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"device": {
"description": "device name like eth0.5",
"type": "string"
},
"name": {
"description": "device name how it will appear in i.e. the Monitor",
"type": "string"
},
"role": {
"description": "Use this Interface as role",
"type": "string"
},
"ip": {
"description": "IP-Address that's connected with this interface.",
"type": "string"
},
"bridge-type": {
"description": "some",
"type": "string"
}
},
"required": [
"device",
"role"
]
}
},
"sshkeys": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
}
},
"required": [
"version",
"created",
"contact",
"node"
]
}