|
57 | 57 | "Admin": { |
58 | 58 | "properties": { |
59 | 59 | "name": { |
60 | | - "type": "string", |
| 60 | + "$ref": "#/$defs/FromEnv", |
61 | 61 | "description": "The administrator name. Immutable, or need the administrator to change the CTFd data AND the configuration file" |
62 | 62 | }, |
63 | 63 | "email": { |
64 | | - "type": "string", |
| 64 | + "$ref": "#/$defs/FromEnv", |
65 | 65 | "description": "The administrator email address. Immutable, or need the administrator to change the CTFd data AND the configuration file" |
66 | 66 | }, |
67 | 67 | "password": { |
|
101 | 101 | "description": "Whether a player can see itw own previous submissions" |
102 | 102 | }, |
103 | 103 | "max_attempts_behavior": { |
| 104 | + "type": "string", |
104 | 105 | "enum": ["lockout", "timeout"], |
105 | 106 | "description": "The behavior to adopt in case a player reached the submission rate limiting", |
106 | 107 | "default": "lockout" |
|
114 | 115 | "description": "Control whether users must be logged in to see free hints" |
115 | 116 | }, |
116 | 117 | "challenge_ratings": { |
| 118 | + "type": "string", |
117 | 119 | "enum": ["public", "private", "disabled"], |
118 | 120 | "description": "Who can see and submit challenge ratings", |
119 | 121 | "default": "public" |
|
172 | 174 | "$ref": "#/$defs/Admin" |
173 | 175 | }, |
174 | 176 | "mode": { |
| 177 | + "type": "string", |
175 | 178 | "enum": ["users", "teams"], |
176 | 179 | "description": "The mode of your CTFd, either users or teams", |
177 | 180 | "default": "users" |
|
240 | 243 | }, |
241 | 244 | "additionalProperties": false, |
242 | 245 | "type": "object", |
| 246 | + "required": [ |
| 247 | + "registration", |
| 248 | + "confirmation", |
| 249 | + "new_account", |
| 250 | + "password_reset", |
| 251 | + "password_reset_confirmation" |
| 252 | + ], |
243 | 253 | "description": "Email rules and server credentials" |
244 | 254 | }, |
245 | 255 | "EmailContent": { |
|
315 | 325 | }, |
316 | 326 | "additionalProperties": false, |
317 | 327 | "type": "object", |
| 328 | + "required": ["tos", "privacy_policy"], |
318 | 329 | "description": "Legal contents for players" |
319 | 330 | }, |
320 | 331 | "MajorLeagueCyber": { |
|
343 | 354 | "description": "Route to serve" |
344 | 355 | }, |
345 | 356 | "format": { |
| 357 | + "type": "string", |
346 | 358 | "enum": ["markdown", "html"], |
347 | 359 | "description": "Format to consume the content", |
348 | 360 | "default": "markdown" |
|
407 | 419 | "Settings": { |
408 | 420 | "properties": { |
409 | 421 | "challenge_visibility": { |
| 422 | + "type": "string", |
410 | 423 | "enum": ["public", "private", "admins"], |
411 | 424 | "description": "The visibility for the challenges. Please refer to CTFd documentation (https://docs.ctfd.io/docs/settings/visibility-settings/)", |
412 | 425 | "default": "private" |
413 | 426 | }, |
414 | 427 | "account_visibility": { |
| 428 | + "type": "string", |
415 | 429 | "enum": ["public", "private", "admins"], |
416 | 430 | "description": "The visibility for the accounts. Please refer to CTFd documentation (https://docs.ctfd.io/docs/settings/visibility-settings/)", |
417 | 431 | "default": "public" |
418 | 432 | }, |
419 | 433 | "score_visibility": { |
| 434 | + "type": "string", |
420 | 435 | "enum": ["public", "private", "admins"], |
421 | 436 | "description": "The visibility for the scoreboard. Please refer to CTFd documentation (https://docs.ctfd.io/docs/settings/visibility-settings/)", |
422 | 437 | "default": "public" |
423 | 438 | }, |
424 | 439 | "registration_visibility": { |
| 440 | + "type": "string", |
425 | 441 | "enum": ["public", "private", "admins"], |
426 | 442 | "description": "The visibility for the registration. Please refer to CTFd documentation (https://docs.ctfd.io/docs/settings/visibility-settings/)", |
427 | 443 | "default": "public" |
|
463 | 479 | "name": { |
464 | 480 | "type": "string", |
465 | 481 | "description": "The frontend theme name", |
466 | | - "default": "core-beta" |
| 482 | + "default": "core" |
467 | 483 | }, |
468 | 484 | "color": { |
469 | 485 | "type": "string", |
|
0 commit comments