Skip to content

Commit

Permalink
fix(qna): validation failed on empty redirect flow
Browse files Browse the repository at this point in the history
  • Loading branch information
rndlaine committed Jul 12, 2019
1 parent ebae886 commit 8449208
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/qna/src/backend/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ export const QnaDefSchema = Joi.object().keys({
category: Joi.string().required(),
enabled: Joi.bool().required(),
redirectFlow: Joi.string()
.optional()
.allow(''),
.allow(null, '')
.optional(),
redirectNode: Joi.string()
.optional()
.allow(''),
.allow(null, '')
.optional(),
questions: Joi.object()
.pattern(/.*/, Joi.array().items(Joi.string()))
.default({}),
Expand Down

0 comments on commit 8449208

Please sign in to comment.