-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
59 lines (59 loc) · 1.85 KB
/
config.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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$ref": "#/$defs/Config",
"$defs": {
"Config": {
"properties": {
"to": { "type": "string", "enum": ["github.com"] },
"from": { "type": "string" },
"orgs": {
"additionalProperties": {
"items": { "$ref": "#/$defs/MirrorDefinition" },
"type": "array"
},
"type": "object"
},
"defaults": { "$ref": "#/$defs/MirrorDefaults" }
},
"additionalProperties": false,
"type": "object",
"required": ["to", "from", "orgs"]
},
"MirrorDefaults": {
"properties": {
"except": { "items": { "type": "string" }, "type": "array" },
"only": { "items": { "type": "string" }, "type": "array" },
"prefix": { "type": "string" },
"suffix": { "type": "string" },
"topics": { "items": { "type": "string" }, "type": "array" },
"subgroups": {
"properties": { "flatten": { "type": "string" } },
"additionalProperties": false,
"type": "object",
"required": ["flatten"]
}
},
"additionalProperties": false,
"type": "object"
},
"MirrorDefinition": {
"properties": {
"from": { "type": "string" },
"except": { "items": { "type": "string" }, "type": "array" },
"only": { "items": { "type": "string" }, "type": "array" },
"prefix": { "type": "string" },
"suffix": { "type": "string" },
"topics": { "items": { "type": "string" }, "type": "array" },
"subgroups": {
"properties": { "flatten": { "type": "string" } },
"additionalProperties": false,
"type": "object",
"required": ["flatten"]
}
},
"additionalProperties": false,
"type": "object",
"required": ["from"]
}
}
}