Add the penalty config option for the solving action
This commit is contained in:
parent
bde3f00ee4
commit
50c110a008
1 changed files with 5 additions and 0 deletions
|
|
@ -4,6 +4,11 @@ import Joi from "joi";
|
|||
export const gameOptionsSchema = Joi.object({
|
||||
files: Joi.object().required().min(1).unknown(true),
|
||||
max_incorrect: Joi.number().min(1).default(6),
|
||||
incorrect_solve_penalty: Joi
|
||||
.number()
|
||||
.min(0)
|
||||
.max(Joi.ref(`max_incorrect`, { render: true }))
|
||||
.default(1),
|
||||
})
|
||||
.meta({ className: `gameOptions` })
|
||||
.description(`The game-specific options`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue