Commit 56690d0
committed
Fix InitialExercisePairResult schema validation error
- Change quizzes array from .length(2) to .min(0).max(2)
- Allows empty array when errors occur during exercise generation
- Fixes 'Array must contain exactly 2 element(s)' validation error
- Error handling in quizSlice properly validates quiz count
This resolves the French language generation error and similar issues
where the API returns errors instead of exercise pairs.1 parent 9b148b7 commit 56690d0
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
0 commit comments