From b5f3b6b29e1e21ac4f804d964532e701cc6da64f Mon Sep 17 00:00:00 2001 From: stefan-betty <71510698+stefan-betty@users.noreply.github.com> Date: Wed, 24 May 2023 17:36:15 +0200 Subject: [PATCH] feat(PAGE-3194): Add label, buttonLabel & selectableObjectKey to manageObjectValues. (#424) --- __tests__/validations/component.test.tsx | 1 + src/validations/prefab/componentOption.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/__tests__/validations/component.test.tsx b/__tests__/validations/component.test.tsx index d0ea2143..585e996e 100644 --- a/__tests__/validations/component.test.tsx +++ b/__tests__/validations/component.test.tsx @@ -946,6 +946,7 @@ test('Success when the reconfigure configuration options of the prefabs are vali value: 'New property', }, manageObjectValues: { + selectableObjectKey: true, buttonLabel: 'Manage something', label: 'something', value: [ diff --git a/src/validations/prefab/componentOption.ts b/src/validations/prefab/componentOption.ts index f75e4cc9..74a44bcc 100644 --- a/src/validations/prefab/componentOption.ts +++ b/src/validations/prefab/componentOption.ts @@ -76,6 +76,7 @@ const optionConfigurationSchema = Joi.when('type', { value: Joi.string().allow(''), }), manageObjectValues: Joi.object({ + selectableObjectKey: Joi.boolean().optional(), buttonLabel: Joi.string().optional(), label: Joi.string().optional(), value: Joi.array().items(Joi.object()),