Skip to content

Commit

Permalink
fix(fire-event): Fix the validation of the data field
Browse files Browse the repository at this point in the history
Fixes #1189
  • Loading branch information
zachowj committed Dec 11, 2023
1 parent f914bb3 commit 483ab69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodes/fire-event/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const inputs: NodeInputs = {

const inputSchema: Joi.ObjectSchema = Joi.object({
event: Joi.string(),
data: Joi.string().empty(''),
data: Joi.alternatives().try(Joi.string().empty(''), Joi.object()),
dataType: Joi.string().valid(TypedInputTypes.JSON, TypedInputTypes.JSONata),
});

Expand Down

0 comments on commit 483ab69

Please sign in to comment.