Skip to content

Commit 9443c6e

Browse files
committed
HUGE schema update
1 parent 47d172e commit 9443c6e

File tree

67 files changed

+1036
-663
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1036
-663
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
schema;dsmc_schema:
22
type: map
3+
nullable: false
34
mapping:
4-
enabled: {type: bool}
5+
enabled: {type: bool, nullable: false}
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
schema;github_schema:
22
type: map
3+
nullable: false
34
mapping:
4-
enabled: {type: bool}
5-
repo: {type: str, required: true}
6-
target: {type: str, required: true}
7-
filter: {type: str}
5+
enabled: {type: bool, nullable: false}
6+
repo: {type: str, required: true, nullable: false, range: {min: 1}}
7+
target: {type: str, required: true, nullable: false, range: {min: 1}}
8+
filter: {type: str, nullable: false, range: {min: 1}}
Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
schema;grpc_schema:
22
type: map
3-
allowempty: true # we might want to specify additional tacview parameters, which are then not validated
3+
nullable: false
4+
allowempty: true # we might want to specify additional parameters
45
mapping:
5-
enabled: {type: bool}
6-
port: {type: int, range: {min: 80, max: 65535}}
7-
evalEnabled: {type: bool}
8-
host: {type: str}
9-
debug: {type: bool}
10-
throughputLimit: {type: int}
11-
integrityCheckDisabled: {type: bool}
12-
tts.defaultProvider: {type: str}
13-
tts.provider.azure.key: {type: str}
14-
tts.provider.azure.region: {type: str}
15-
tts.provider.azure.defaultVoice: {type: str}
16-
tts.provider.aws.key: {type: str}
17-
tts.provider.aws.region: {type: str}
18-
tts.provider.aws.defaultVoice: {type: str}
19-
tts.provider.gcloud.key: {type: str}
20-
tts.provider.gcloud.defaultVoice: {type: str}
21-
tts.provider.win.defaultVoice: {type: str}
6+
enabled: {type: bool, nullable: false}
7+
port: {type: int, range: {min: 80, max: 65535}, nullable: false}
8+
evalEnabled: {type: bool, nullable: false}
9+
host: {type: str, nullable: false, range: {min: 1}}
10+
debug: {type: bool, nullable: false}
11+
throughputLimit: {type: int, nullable: false}
12+
integrityCheckDisabled: {type: bool, nullable: false}
13+
tts.defaultProvider: {type: str, nullable: false, range: {min: 1}}
14+
tts.provider.azure.key: {type: str, nullable: false, range: {min: 1}}
15+
tts.provider.azure.region: {type: str, nullable: false, range: {min: 1}}
16+
tts.provider.azure.defaultVoice: {type: str, nullable: false, range: {min: 1}}
17+
tts.provider.aws.key: {type: str, nullable: false, range: {min: 1}}
18+
tts.provider.aws.region: {type: str, nullable: false, range: {min: 1}}
19+
tts.provider.aws.defaultVoice: {type: str, nullable: false, range: {min: 1}}
20+
tts.provider.gcloud.key: {type: str, nullable: false, range: {min: 1}}
21+
tts.provider.gcloud.defaultVoice: {type: str, nullable: false, range: {min: 1}}
22+
tts.provider.win.defaultVoice: {type: str, nullable: false, range: {min: 1}}
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
schema;node_lardoon_schema:
22
type: map
3+
nullable: false
34
mapping:
4-
cmd: {type: str, pattern: '.+\.exe$', required: true}
5-
minutes: {type: int}
6-
bind: {type: str, pattern: '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d{1,5}', required: true}
7-
url: {type: str, pattern: 'http(s)?://[a-zA-Z0-9\-.]+(:[0-9]+)?(/.*)?'}
5+
cmd: {type: str, pattern: '.+\.exe$', required: true, nullable: false, range: {min: 1}}
6+
minutes: {type: int, nullable: false}
7+
bind: {type: str, pattern: '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d{1,5}', required: true, nullable: false}
8+
url: {type: str, pattern: 'http(s)?://[a-zA-Z0-9\-.]+(:[0-9]+)?(/.*)?', nullable: false}
89
schema;instance_lardoon_schema:
910
type: map
11+
nullable: false
1012
mapping:
11-
enabled: {type: bool}
12-
debug: {type: bool}
13-
tacviewExportPath: {type: str}
13+
enabled: {type: bool, nullable: false}
14+
debug: {type: bool, nullable: false}
15+
tacviewExportPath: {type: str, nullable: false, range: {min: 1}}
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
schema;loganalyser_schema:
22
type: map
3+
nullable: false
34
mapping:
4-
enabled: {type: bool}
5-
restart_on_unlist: {type: bool}
6-
message_unlist: {type: str}
5+
enabled: {type: bool, nullable: false}
6+
restart_on_unlist: {type: bool, nullable: false}
7+
message_unlist: {type: str, nullable: false, range: {min: 1}}
78
warn_times:
89
type: seq
10+
nullable: false
911
sequence:
1012
- type: int
13+
nullable: false
14+
unique: true
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
schema;node_lotatc_schema:
22
type: map
3+
nullable: false
34
allowempty: true # we might want to specify additional lotatc parameters, which are then not validated
45
mapping:
5-
installation: {type: str}
6-
autoupdate: {type: any}
6+
installation: {type: str, nullable: false, range: {min: 1}}
7+
autoupdate: {type: any, nullable: false}
78
schema;instance_lotatc_schema:
89
type: map
10+
nullable: false
911
allowempty: true # we might get other LotAtc options in here
1012
mapping:
11-
enabled: {type: bool}
12-
host: {type: str}
13-
port: {type: int, range: {min: 80, max: 65535}}
14-
show_passwords: {type: bool}
15-
autoupdate: {type: bool}
13+
enabled: {type: bool, nullable: false}
14+
host: {type: str, nullable: false, range: {min: 1}}
15+
port: {type: int, range: {min: 80, max: 65535}, nullable: false}
16+
show_passwords: {type: bool, nullable: false}
17+
autoupdate: {type: bool, nullable: false}

extensions/mizedit/schemas/mizedit_schema.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,27 @@ schema;settings_schema:
44

55
schema;mizedit_schema:
66
type: map
7+
nullable: false
78
mapping:
8-
enabled: {type: bool}
9+
enabled: {type: bool, nullable: false}
910
presets:
1011
type: seq
12+
nullable: false
1113
sequence:
1214
- type: str
1315
unique: true
16+
nullable: false
17+
range: {min: 1}
1418
settings:
1519
include: 'settings_schema'
1620
terrains:
1721
type: map
22+
nullable: false
23+
allowempty: true
1824
mapping:
1925
regex;(Caucasus|Syria|PersianGulf|SinaiMap|TheChannel|Nevada|Normandy|MarianaIslands|Falklands|Kola|Afghanistan|Iraq):
2026
type: map
27+
nullable: false
2128
mapping:
2229
settings:
2330
include: 'settings_schema'
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
schema;modmanager_schema:
22
type: map
3+
nullable: false
34
mapping:
4-
enabled: {type: bool}
5+
enabled: {type: bool, nullable: false}
Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,48 @@
11
schema;node_olympus_schema:
22
type: map
3+
nullable: false
34
mapping:
4-
nodejs: {type: str, required: true, nullable: false}
5-
debug: {type: bool}
6-
show_passwords: {type: bool}
5+
nodejs: {type: str, nullable: false, range: {min: 1}}
6+
debug: {type: bool, nullable: false}
7+
show_passwords: {type: bool, nullable: false}
78
authentication:
89
type: map
10+
nullable: false
11+
allowempty: true
912
mapping:
10-
gameMasterPassword: {type: str, required: true}
11-
blueCommanderPassword: {type: str, required: true}
12-
redCommanderPassword: {type: str, required: true}
13+
gameMasterPassword: {type: str, required: true, nullable: false, range: {min: 1}}
14+
blueCommanderPassword: {type: str, required: true, nullable: false, range: {min: 1}}
15+
redCommanderPassword: {type: str, required: true, nullable: false, range: {min: 1}}
1316
schema;instance_olympus_schema:
1417
type: map
18+
nullable: false
19+
allowempty: true
1520
mapping:
16-
enabled: {type: bool}
17-
debug: {type: bool}
18-
show_passwords: {type: bool}
19-
url: {type: str, pattern: 'http(s)?://[a-zA-Z0-9\-.]+(:[0-9]+)?(/.*)?'}
21+
enabled: {type: bool, nullable: false}
22+
debug: {type: bool, nullable: false}
23+
show_passwords: {type: bool, nullable: false}
24+
url: {type: str, pattern: 'http(s)?://[a-zA-Z0-9\-.]+(:[0-9]+)?(/.*)?', nullable: false}
2025
regex;(backend|server):
2126
type: map
27+
nullable: false
2228
required: true
29+
allowempty: true
2330
mapping:
24-
address: {type: str}
25-
port: {type: int, required: true, range: {min: 80, max: 65535}}
31+
address: {type: str, nullable: false, range: {min: 1}}
32+
port: {type: int, required: true, range: {min: 80, max: 65535}, nullable: false}
2633
authentication:
2734
type: map
35+
nullable: false
36+
allowempty: true
2837
mapping:
29-
gameMasterPassword: {type: str, required: true}
30-
blueCommanderPassword: {type: str, required: true}
31-
redCommanderPassword: {type: str, required: true}
38+
gameMasterPassword: {type: str, required: true, nullable: false, range: {min: 1}}
39+
blueCommanderPassword: {type: str, required: true, nullable: false, range: {min: 1}}
40+
redCommanderPassword: {type: str, required: true, nullable: false, range: {min: 1}}
3241
regex;(frontend|client):
3342
type: map
43+
nullable: false
3444
required: true
45+
allowempty: true
3546
mapping:
36-
path: {type: str}
37-
port: {type: int, required: true, range: {min: 80, max: 65535}}
47+
path: {type: str, nullable: false, range: {min: 1}}
48+
port: {type: int, required: true, range: {min: 80, max: 65535}, nullable: false}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
schema;pretense_schema:
22
type: map
3+
nullable: false
34
mapping:
4-
enabled: {type: bool}
5-
randomize: {type: bool}
5+
enabled: {type: bool, nullable: false}
6+
randomize: {type: bool, nullable: false}

0 commit comments

Comments
 (0)