feat: handle multi-file solutions

This commit is contained in:
Oliver Eyton-Williams
2020-06-12 14:47:58 +02:00
committed by Mrugesh Mohapatra
parent 54630cbfca
commit 301212e194
3 changed files with 66 additions and 43 deletions

View File

@ -73,7 +73,12 @@ function getSchemaForLang(lang) {
})
),
solutions: Joi.array().items(Joi.string().optional()),
solutionFiles: Joi.array().items(fileJoi),
solutionFiles: Joi.object().keys({
indexcss: fileJoi,
indexhtml: fileJoi,
indexjs: fileJoi,
indexjsx: fileJoi
}),
superBlock: Joi.string(),
superOrder: Joi.number(),
suborder: Joi.number(),