Skip to content

Commit f835165

Browse files
authored
Merge pull request #205 from vzauartcc/development
Allow Longer Exam Question Option Text
2 parents 933130e + 9346711 commit f835165

3 files changed

Lines changed: 106 additions & 96 deletions

File tree

package-lock.json

Lines changed: 97 additions & 94 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/controllers/exam/exam.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ const createExamValidation = [
3838
body('questions.*.options.*.text').notEmpty().withMessage('Option text is required'),
3939
body('questions.*.options.*.text')
4040
.trim()
41-
.isLength({ max: 100 })
42-
.withMessage('Option text should not exceed 100 characters'),
41+
.isLength({ max: 400 })
42+
.withMessage('Option text should not exceed 400 characters'),
4343
body('questions.*.options.*.isCorrect').isBoolean().withMessage('isCorrect must be a boolean'),
4444
// Custom validation logic here
4545
(req: Request, res: Response, next: NextFunction) => {

0 commit comments

Comments
 (0)