Something went wrong. Try again.
fork of hey-api/openapi-ts because I need some additional things
Something went wrong. Try again.
Fix discriminator inheritance to use Omit for proper type narrowing master
- Remove union of child discriminator values from intermediate types - Each type now gets only its direct discriminator value - Use Omit<> to remove parent discriminator properties and avoid conflicts - Enables proper TypeScript type narrowing with discriminated unions Example: CarDto.$type is now 'Car' instead of 'Car' | 'Volvo' VolvoDto uses Omit<CarDto, '$type'> & { $type: 'Volvo' } Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
Author copilot-swe-agent[bot] Co-author mrlubos Date (Dec 19, 2025, 2:27 PM UTC) Commit fb8623cf fb8623cff51fed4bca5064f8f22f9b18b01d8118 Parent de213f70 de213f7012e41f67ff4b61aab3f261d449ae6057