Pydantic Lax Mode Hid 689 Type Errors in My Claude JSON Outputs
My contract extraction pipeline had a 99.7% validation pass rate. Then a Node script summed the contract values and printed 01200.50300 . That's not a number. It's what JavaScript gives you when you add 0 + "1200.50" + 300 . The amount had come back from Claude as a string, Pydantic had quietly acc…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-17 08:45 · DEV Community — AI
Pydantic Lax Mode Hid 689 Type Errors in My Claude JSON Outputs