From 6c2ee573ad4ebd809c8a938508da762e2ecd2fd9 Mon Sep 17 00:00:00 2001 From: "J. Quak" Date: Mon, 26 Jun 2023 11:10:22 +0200 Subject: [PATCH] fix: change string to object in pushToWrapper (#448) Co-authored-by: Jordy Quak --- src/validations/prefab/componentOption.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/validations/prefab/componentOption.ts b/src/validations/prefab/componentOption.ts index da895a50..af58b730 100644 --- a/src/validations/prefab/componentOption.ts +++ b/src/validations/prefab/componentOption.ts @@ -58,8 +58,8 @@ const optionConfigurationSchemaBase = { showOnDrop: Joi.boolean(), showTextStyleColor: Joi.boolean(), pushToWrapper: Joi.object({ - name: Joi.string(), - condition: optionConditionSchema, + name: Joi.string().required(), + condition: optionConditionSchema.optional(), }), };