You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Documented that NO generator refuses to generate for ambiguous schemas
- Added detailed breakdown of each language's ambiguity handling strategy
- Documented Swift's oneOfUnknownDefaultCase option for unmatched values
- Explained Python's strict ValidationError approach
- Documented Java's pragmatic 'first match wins' approach
- Added common warnings and limitations from the codebase
- Included best practices for avoiding ambiguity (discriminators, mutual exclusion, ordering)
- Explained why generators choose fallbacks over refusing generation
Key findings:
- All generators have fallback strategies rather than refusing
- Python has the strictest validation (ValidationError for multiple oneOf matches)
- TypeScript is the most permissive (structural typing, no runtime validation)
- Most use 'first match wins' for untagged unions
- Pragmatism wins over strictness due to real-world API imperfections
0 commit comments