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:
committed by
Mrugesh Mohapatra
parent
7055211959
commit
2a82c068d3
@ -96,8 +96,9 @@ function getSchemaForLang(lang) {
|
||||
});
|
||||
|
||||
if (lang !== 'english') {
|
||||
// TODO: make this required again once all current challenges have it.
|
||||
schema = schema.append({
|
||||
localeTitle: Joi.string().required()
|
||||
localeTitle: Joi.string().allow('')
|
||||
});
|
||||
}
|
||||
return schema;
|
||||
|
Reference in New Issue
Block a user