fix(schema): change schema and unpack script
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
0db6aeb523
commit
b014b23404
@ -46,7 +46,6 @@ const schema = Joi.object().keys({
|
||||
crossDomain: Joi.bool()
|
||||
})
|
||||
),
|
||||
releasedOn: Joi.string().allow(''),
|
||||
solutions: Joi.array().items(Joi.string().optional()),
|
||||
superBlock: Joi.string(),
|
||||
superOrder: Joi.number(),
|
||||
@ -67,14 +66,7 @@ const schema = Joi.object().keys({
|
||||
),
|
||||
template: Joi.string(),
|
||||
time: Joi.string().allow(''),
|
||||
title: Joi.string().required(),
|
||||
translations: Joi.object().pattern(
|
||||
/\w+(-\w+)*/,
|
||||
Joi.object().keys({
|
||||
title: Joi.string(),
|
||||
description: Joi.array().items(Joi.string().allow(''))
|
||||
})
|
||||
)
|
||||
title: Joi.string().required()
|
||||
});
|
||||
|
||||
exports.validateChallenge = function validateChallenge(challenge) {
|
||||
|
Reference in New Issue
Block a user