mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(tools, client): add speaking tasks logic (#61906)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -93,7 +93,8 @@ const questionJoi = Joi.object().keys({
|
||||
.items(
|
||||
Joi.object().keys({
|
||||
answer: Joi.string().required(),
|
||||
feedback: Joi.string().allow(null)
|
||||
feedback: Joi.string().allow(null),
|
||||
audioId: Joi.string().allow(null)
|
||||
})
|
||||
)
|
||||
.required()
|
||||
@@ -334,6 +335,7 @@ const schema = Joi.object().keys({
|
||||
'array.unique': 'Dialogues must not have overlapping times.'
|
||||
})
|
||||
}),
|
||||
showSpeakingButton: Joi.bool(),
|
||||
solutions: Joi.array().items(Joi.array().items(fileJoi).min(1)),
|
||||
superBlock: Joi.string().regex(slugWithSlashRE),
|
||||
superOrder: Joi.number(),
|
||||
|
||||
Reference in New Issue
Block a user