Skip to content

Commit 337a7aa

Browse files
authored
core(deps): update ctfd-setup schema (SchemaStore#5001)
Co-authored-by: pandatix <[email protected]>
1 parent f642ed0 commit 337a7aa

File tree

1 file changed

+71
-1
lines changed

1 file changed

+71
-1
lines changed

src/schemas/json/ctfd.json

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
"type": "integer",
2626
"description": "Maximum size (number of players) in a team."
2727
},
28+
"password_min_length": {
29+
"type": "integer",
30+
"description": "Minimal length of passwords."
31+
},
2832
"num_teams": {
2933
"type": "integer",
3034
"description": "The total number of teams allowed."
@@ -37,7 +41,7 @@
3741
"type": "string",
3842
"description": "Whether to allow teams to be disbanded or not. Could be inactive_only or disabled."
3943
},
40-
"incorrect_submissions_per_minutes": {
44+
"incorrect_submissions_per_minute": {
4145
"type": "integer",
4246
"description": "Maximum number of invalid submissions per minute (per user/team). We suggest you use it as part of an anti-brute-force strategy (rate limiting)."
4347
},
@@ -90,6 +94,44 @@
9094
"required": ["name", "description"],
9195
"description": "Appearance of the CTFd."
9296
},
97+
"Challenges": {
98+
"properties": {
99+
"view_self_submissions": {
100+
"type": "boolean",
101+
"description": "Whether a player can see itw own previous submissions."
102+
},
103+
"max_attempts_behavior": {
104+
"type": "string",
105+
"enum": ["lockout", "timeout"],
106+
"description": "The behavior to adopt in case a player reached the submission rate limiting.",
107+
"default": "lockout"
108+
},
109+
"max_attempts_timeout": {
110+
"type": "integer",
111+
"description": "The duration of the submission rate limit for further submissions."
112+
},
113+
"hints_free_public_access": {
114+
"type": "boolean",
115+
"description": "Control whether users must be logged in to see free hints."
116+
},
117+
"challenge_ratings": {
118+
"type": "string",
119+
"enum": ["public", "private", "disabled"],
120+
"description": "Who can see and submit challenge ratings.",
121+
"default": "public"
122+
}
123+
},
124+
"additionalProperties": false,
125+
"type": "object",
126+
"required": [
127+
"view_self_submissions",
128+
"max_attempts_behavior",
129+
"max_attempts_timeout",
130+
"hints_free_public_access",
131+
"challenge_ratings"
132+
],
133+
"description": "Challenge-related configurations."
134+
},
93135
"Config": {
94136
"properties": {
95137
"appearance": {
@@ -101,6 +143,9 @@
101143
"accounts": {
102144
"$ref": "#/$defs/Accounts"
103145
},
146+
"challenges": {
147+
"$ref": "#/$defs/Challenges"
148+
},
104149
"pages": {
105150
"$ref": "#/$defs/Pages"
106151
},
@@ -133,6 +178,12 @@
133178
"enum": ["users", "teams"],
134179
"description": "The mode of your CTFd, either users or teams.",
135180
"default": "users"
181+
},
182+
"uploads": {
183+
"items": {
184+
"$ref": "#/$defs/Upload"
185+
},
186+
"type": "array"
136187
}
137188
},
138189
"additionalProperties": false,
@@ -397,6 +448,10 @@
397448
"shares": {
398449
"type": "boolean",
399450
"description": "Whether to enable users share they solved a challenge or not."
451+
},
452+
"template": {
453+
"$ref": "#/$defs/File",
454+
"description": "A template for social shares."
400455
}
401456
},
402457
"additionalProperties": false,
@@ -461,6 +516,21 @@
461516
"additionalProperties": false,
462517
"type": "object",
463518
"description": "Time settings of the CTF."
519+
},
520+
"Upload": {
521+
"properties": {
522+
"file": {
523+
"$ref": "#/$defs/File"
524+
},
525+
"location": {
526+
"type": "string",
527+
"description": "Where to upload it.\nThis enables to use a file at a static location in, e.g., custom pages."
528+
}
529+
},
530+
"additionalProperties": false,
531+
"type": "object",
532+
"required": ["file", "location"],
533+
"description": "Upload defines a file or content to upload as per the setup."
464534
}
465535
}
466536
}

0 commit comments

Comments
 (0)