Skip to content

Commit

Permalink
feat: add allowedKinds to action js variable option (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
ingmar-stipriaan authored Jan 16, 2025
1 parent e2ca6b4 commit a931edf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions __tests__/validations/component.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions src/validations/prefab/componentOption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit a931edf

Please sign in to comment.