fix: relax schema while auditing translations

Without this change we would have to put in dummy localeTitle values.
This defeats the point of making it required.
This commit is contained in:
Oliver Eyton-Williams
2020-08-13 17:08:41 +02:00
committed by Mrugesh Mohapatra
parent 7055211959
commit 2a82c068d3

View File

@ -96,8 +96,9 @@ function getSchemaForLang(lang) {
}); });
if (lang !== 'english') { if (lang !== 'english') {
// TODO: make this required again once all current challenges have it.
schema = schema.append({ schema = schema.append({
localeTitle: Joi.string().required() localeTitle: Joi.string().allow('')
}); });
} }
return schema; return schema;