From e004ef326eeca941dd0fd25b9e916379ca9ba894 Mon Sep 17 00:00:00 2001 From: Sem Bauke Date: Thu, 30 Oct 2025 13:51:21 +0100 Subject: [PATCH] feat(curriculum): add language field to challenge schema (#63318) Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- curriculum/schema/challenge-schema.js | 1 + 1 file changed, 1 insertion(+) diff --git a/curriculum/schema/challenge-schema.js b/curriculum/schema/challenge-schema.js index affad7cc2da..6d2b84ba825 100644 --- a/curriculum/schema/challenge-schema.js +++ b/curriculum/schema/challenge-schema.js @@ -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(),