Commit a9b51d0
fix: escape quotes and newlines in generated model descriptions
Fixed syntax error in generated.py caused by unescaped quotes and newlines
in Field descriptions from JSON schemas.
ISSUE:
- Multi-line descriptions with quotes broke Python syntax
- Line 92 had unterminated string literal causing mypy failure
- Descriptions from schemas weren't properly escaped
FIX:
- Escape double quotes in descriptions: " -> \"
- Replace newlines with spaces to keep descriptions single-line
- Also escape triple quotes in class-level docstrings
- Regenerated all models with proper escaping
RESULT:
- Python syntax is now valid (py_compile passes)
- All 50 generated models are properly formatted
- Type checker should now pass in CI
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 38a5174 commit a9b51d0
2 files changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | | - | |
| 49 | + | |
48 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 92 | + | |
95 | 93 | | |
96 | 94 | | |
97 | 95 | | |
| |||
0 commit comments