diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/lectures-python-for-everybody/introduction-b.english.md b/curriculum/challenges/english/07-scientific-computing-with-python/lectures-python-for-everybody/introduction-b.english.md index bc0b1d2204..8bd771880f 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/lectures-python-for-everybody/introduction-b.english.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/lectures-python-for-everybody/introduction-b.english.md @@ -3,6 +3,7 @@ id: 5e6a54af58d3af90110a60a1 title: Introduction B challengeType: 11 isRequired: true +videoId: H6qtjRTfSog --- ## Description diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/lectures-python-for-everybody/introduction-c.english.md b/curriculum/challenges/english/07-scientific-computing-with-python/lectures-python-for-everybody/introduction-c.english.md index a5809b386a..3db28d569c 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/lectures-python-for-everybody/introduction-c.english.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/lectures-python-for-everybody/introduction-c.english.md @@ -3,6 +3,7 @@ id: 5e6a54ba58d3af90110a60a2 title: Introduction C challengeType: 11 isRequired: true +videoId: 0QeGbZNS_bY --- ## Description diff --git a/curriculum/schema/challengeSchema.js b/curriculum/schema/challengeSchema.js index f5136ed075..e4f4d3e218 100644 --- a/curriculum/schema/challengeSchema.js +++ b/curriculum/schema/challengeSchema.js @@ -41,7 +41,6 @@ function getSchemaForLang(lang) { ), guideUrl: Joi.string().uri({ scheme: 'https' }), videoUrl: Joi.string().allow(''), - videoId: Joi.string(), forumTopicId: Joi.number(), helpRoom: Joi.string(), id: Joi.objectId().required(), @@ -54,6 +53,10 @@ function getSchemaForLang(lang) { name: Joi.string(), order: Joi.number(), // video challenges only: + videoId: Joi.when('challengeType', { + is: challengeTypes.video, + then: Joi.string().required() + }), question: Joi.object().keys({ text: Joi.string().required(), answers: Joi.array()