feat(curriculum): add language field to challenge schema (#63318)

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
Sem Bauke
2025-10-30 13:51:21 +01:00
committed by GitHub
parent 037cac3991
commit e004ef326e
+1
View File
@@ -227,6 +227,7 @@ const schema = Joi.object().keys({
}),
forumTopicId: Joi.number(),
id: Joi.objectId().required(),
lang: Joi.string(),
instructions: Joi.string().when('challengeType', {
is: [challengeTypes.pythonProject, challengeTypes.codeAllyCert],
then: Joi.string().min(1).required(),