mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-27 08:13:28 +08:00
added min value
This commit is contained in:
parent
1205b5cfd4
commit
8e7f966fc7
1 changed files with 8 additions and 2 deletions
|
@ -43,10 +43,16 @@ const RESULT_SCHEMA = joi
|
|||
keyConsistency: joi.number().min(0).required(),
|
||||
keyDuration: joi
|
||||
.alternatives()
|
||||
.try(joi.array().items(joi.number()), joi.string().valid("toolong")),
|
||||
.try(
|
||||
joi.array().items(joi.number().min(0)),
|
||||
joi.string().valid("toolong")
|
||||
),
|
||||
keySpacing: joi
|
||||
.alternatives()
|
||||
.try(joi.array().items(joi.number()), joi.string().valid("toolong")),
|
||||
.try(
|
||||
joi.array().items(joi.number().min(0)),
|
||||
joi.string().valid("toolong")
|
||||
),
|
||||
lang: joi.string(),
|
||||
stringified: joi.string(),
|
||||
language: joi.string().required(),
|
||||
|
|
Loading…
Reference in a new issue