-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
49 lines (49 loc) · 1.32 KB
/
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"items": {
"anyOf": [
{ "$ref": "#/$defs/target" },
{ "$ref": "#/$defs/group" }
]
},
"$defs": {
"target": {
"type": "object",
"required": [
"name",
"hostname"
],
"properties": {
"name": {
"type": "string",
"pattern": "^[-_0-9a-zA-Z]+$"
},
"probe": { "type": "string" },
"menu": { "type": "string" },
"title": { "type": "string" },
"hostname": { "type": "string" }
},
"additionalProperties": false
},
"group": {
"type": "object",
"required": [
"name",
"targets"
],
"properties": {
"name": {
"type": "string",
"pattern": "^[-_0-9a-zA-Z]+$"
},
"menu": { "type": "string" },
"targets": {
"type": "array",
"items": { "$ref": "#/$defs/target" }
}
},
"additionalProperties": false
}
}
}