diff --git a/packages/server/src/api/routes/utils/validators.ts b/packages/server/src/api/routes/utils/validators.ts index d83569673f..334b3bac26 100644 --- a/packages/server/src/api/routes/utils/validators.ts +++ b/packages/server/src/api/routes/utils/validators.ts @@ -265,7 +265,7 @@ export function screenValidator() { function generateStepSchema(allowStepTypes: string[]) { const branchSchema = Joi.object({ name: Joi.string().required(), - condition: filterObject(false).required().min(1), + condition: filterObject({ unknown: false }).required().min(1), }) return Joi.object({