* Replace flat-merged dataclasses emitted by quicktype for $ref-based * discriminated unions with proper Python unions: a `Name = VariantA | ...` * alias plus a `_load_Name(obj)` dispatcher. Rewrites `Name.from_dict(x)` and * `to_class(Name, x)` references to use the dispatcher / per-variant * `
| 291 | * there also route through the new dispatcher. |
| 292 | */ |
| 293 | interface ResolvedRefBasedUnion { |
| 294 | aliasName: string; |
| 295 | discriminatorProp: string; |
| 296 | dispatch: Array<{ value: string; typeName: string }>; |
| 297 | } |
| 298 | function postProcessRefBasedDiscriminatedUnionsForPython( |
| 299 | code: string, |
| 300 | definitions: Record<string, JSONSchema7>, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…