From ec2577b867b1ac1ee52528c0175f19206ec71fac Mon Sep 17 00:00:00 2001 From: Maksym Mykhailenko Date: Thu, 27 Dec 2018 11:04:13 +0800 Subject: [PATCH] fix validation for productTemplates update endpoint --- src/routes/productTemplates/update.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/productTemplates/update.js b/src/routes/productTemplates/update.js index 82095299..39456144 100644 --- a/src/routes/productTemplates/update.js +++ b/src/routes/productTemplates/update.js @@ -21,10 +21,11 @@ const schema = { name: Joi.string().max(255), productKey: Joi.string().max(45), category: Joi.string().max(45), + subCategory: Joi.string().max(45), icon: Joi.string().max(255), brief: Joi.string().max(45), details: Joi.string().max(255), - aliases: Joi.object(), + aliases: Joi.array(), template: Joi.object(), disabled: Joi.boolean().optional(), hidden: Joi.boolean().optional(),