Commit d666cb4
committed
Fix schema inconsistency: ExerciseContentSchema now uses enum for correctAnswer
- Changed correctAnswer from z.string() to z.enum(['A', 'B', 'C', 'D'])
- This ensures consistency with QuizDataSchema and GeneratedExerciseSchema
- Should fix answer validation issues where AI generates string values
- Addresses the root cause of incorrect answer marking1 parent e56220d commit d666cb4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments