Commit 9b0e1db
committed
Fix schema validation for correctAnswer field
- Update ExerciseContentSchema to use z.enum(['A', 'B', 'C', 'D']) for correctAnswer
- Update QuizDataSchema to use z.enum(['A', 'B', 'C', 'D']) for correctAnswer
- This ensures correctAnswer can only be 'A', 'B', 'C', or 'D' as expected
- Should fix the answer validation issues where correct answers were marked incorrect1 parent 2105eef commit 9b0e1db
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments