diff --git a/__tests__/validations/component.test.tsx b/__tests__/validations/component.test.tsx index 3c99d1dc..89a39ef3 100644 --- a/__tests__/validations/component.test.tsx +++ b/__tests__/validations/component.test.tsx @@ -1195,6 +1195,7 @@ test('Success when adding createActionInputVariable in the option configuration key: 'something', type: 'ACTION_JS_VARIABLE', configuration: { + allowedKinds: ['STRING', 'INTEGER'], createActionInputVariable: { name: 'Test Name', type: 'STRING', diff --git a/src/validations/prefab/componentOption.ts b/src/validations/prefab/componentOption.ts index 79c81600..d922e666 100644 --- a/src/validations/prefab/componentOption.ts +++ b/src/validations/prefab/componentOption.ts @@ -99,6 +99,7 @@ const optionConfigurationSchema = Joi.when('type', { is: 'ACTION_JS_VARIABLE', then: Joi.object({ ...optionConfigurationSchemaBase, + allowedKinds: Joi.array().items(Joi.string()), createActionInputVariable: Joi.object({ name: Joi.string().optional(), type: Joi.string().required(),