Skip to content

Commit 13cacdf

Browse files
chore(deps): update ctfd.json schema for ctfd-setup v1.8.4 (SchemaStore#5360)
Co-authored-by: pandatix <pandatix@users.noreply.github.com>
1 parent 6947e22 commit 13cacdf

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

src/schemas/json/ctfd.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@
5757
"Admin": {
5858
"properties": {
5959
"name": {
60-
"type": "string",
60+
"$ref": "#/$defs/FromEnv",
6161
"description": "The administrator name. Immutable, or need the administrator to change the CTFd data AND the configuration file"
6262
},
6363
"email": {
64-
"type": "string",
64+
"$ref": "#/$defs/FromEnv",
6565
"description": "The administrator email address. Immutable, or need the administrator to change the CTFd data AND the configuration file"
6666
},
6767
"password": {
@@ -101,6 +101,7 @@
101101
"description": "Whether a player can see itw own previous submissions"
102102
},
103103
"max_attempts_behavior": {
104+
"type": "string",
104105
"enum": ["lockout", "timeout"],
105106
"description": "The behavior to adopt in case a player reached the submission rate limiting",
106107
"default": "lockout"
@@ -114,6 +115,7 @@
114115
"description": "Control whether users must be logged in to see free hints"
115116
},
116117
"challenge_ratings": {
118+
"type": "string",
117119
"enum": ["public", "private", "disabled"],
118120
"description": "Who can see and submit challenge ratings",
119121
"default": "public"
@@ -172,6 +174,7 @@
172174
"$ref": "#/$defs/Admin"
173175
},
174176
"mode": {
177+
"type": "string",
175178
"enum": ["users", "teams"],
176179
"description": "The mode of your CTFd, either users or teams",
177180
"default": "users"
@@ -240,6 +243,13 @@
240243
},
241244
"additionalProperties": false,
242245
"type": "object",
246+
"required": [
247+
"registration",
248+
"confirmation",
249+
"new_account",
250+
"password_reset",
251+
"password_reset_confirmation"
252+
],
243253
"description": "Email rules and server credentials"
244254
},
245255
"EmailContent": {
@@ -315,6 +325,7 @@
315325
},
316326
"additionalProperties": false,
317327
"type": "object",
328+
"required": ["tos", "privacy_policy"],
318329
"description": "Legal contents for players"
319330
},
320331
"MajorLeagueCyber": {
@@ -343,6 +354,7 @@
343354
"description": "Route to serve"
344355
},
345356
"format": {
357+
"type": "string",
346358
"enum": ["markdown", "html"],
347359
"description": "Format to consume the content",
348360
"default": "markdown"
@@ -407,21 +419,25 @@
407419
"Settings": {
408420
"properties": {
409421
"challenge_visibility": {
422+
"type": "string",
410423
"enum": ["public", "private", "admins"],
411424
"description": "The visibility for the challenges. Please refer to CTFd documentation (https://docs.ctfd.io/docs/settings/visibility-settings/)",
412425
"default": "private"
413426
},
414427
"account_visibility": {
428+
"type": "string",
415429
"enum": ["public", "private", "admins"],
416430
"description": "The visibility for the accounts. Please refer to CTFd documentation (https://docs.ctfd.io/docs/settings/visibility-settings/)",
417431
"default": "public"
418432
},
419433
"score_visibility": {
434+
"type": "string",
420435
"enum": ["public", "private", "admins"],
421436
"description": "The visibility for the scoreboard. Please refer to CTFd documentation (https://docs.ctfd.io/docs/settings/visibility-settings/)",
422437
"default": "public"
423438
},
424439
"registration_visibility": {
440+
"type": "string",
425441
"enum": ["public", "private", "admins"],
426442
"description": "The visibility for the registration. Please refer to CTFd documentation (https://docs.ctfd.io/docs/settings/visibility-settings/)",
427443
"default": "public"
@@ -463,7 +479,7 @@
463479
"name": {
464480
"type": "string",
465481
"description": "The frontend theme name",
466-
"default": "core-beta"
482+
"default": "core"
467483
},
468484
"color": {
469485
"type": "string",

0 commit comments

Comments
 (0)