Skip to content

Commit ccb64d4

Browse files
author
vikasrohit
authored
Merge pull request #209 from maxceem/fix-product-templates-update
fix validation for productTemplates update endpoint
2 parents 57bc809 + ec2577b commit ccb64d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/routes/productTemplates/update.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ const schema = {
2121
name: Joi.string().max(255),
2222
productKey: Joi.string().max(45),
2323
category: Joi.string().max(45),
24+
subCategory: Joi.string().max(45),
2425
icon: Joi.string().max(255),
2526
brief: Joi.string().max(45),
2627
details: Joi.string().max(255),
27-
aliases: Joi.object(),
28+
aliases: Joi.array(),
2829
template: Joi.object(),
2930
disabled: Joi.boolean().optional(),
3031
hidden: Joi.boolean().optional(),

0 commit comments

Comments
 (0)