mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-10 22:22:21 +08:00
stricter result schema
This commit is contained in:
parent
f51a64727e
commit
bcc6445440
1 changed files with 2 additions and 2 deletions
|
|
@ -45,13 +45,13 @@ const RESULT_SCHEMA = joi
|
|||
keyDuration: joi
|
||||
.alternatives()
|
||||
.try(
|
||||
joi.array().max(122).items(joi.number().min(0)),
|
||||
joi.array().items(joi.number().min(0)),
|
||||
joi.string().valid("toolong")
|
||||
),
|
||||
keySpacing: joi
|
||||
.alternatives()
|
||||
.try(
|
||||
joi.array().max(122).items(joi.number().min(0)),
|
||||
joi.array().items(joi.number().min(0)),
|
||||
joi.string().valid("toolong")
|
||||
),
|
||||
keyOverlap: joi.number().min(0),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue