Skip to content

fix(zod): fall back to z.union for discriminated unions with empty-ob…

8fa9f3a
Select commit
Loading
Failed to load commit list.
Open

fix(zod): fall back to z.union for discriminated unions with empty-object members #3915

fix(zod): fall back to z.union for discriminated unions with empty-ob…
8fa9f3a
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project failed May 19, 2026 in 1s

37.69% (-0.02%) compared to 0c865e1

View this Pull Request on Codecov

37.69% (-0.02%) compared to 0c865e1

Details

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 37.69%. Comparing base (0c865e1) to head (8fa9f3a).

Files with missing lines Patch % Lines
...i-ts/src/plugins/zod/shared/discriminated-union.ts 0.00% 3 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3915      +/-   ##
==========================================
- Coverage   37.70%   37.69%   -0.02%     
==========================================
  Files         582      582              
  Lines       20844    20851       +7     
  Branches     6063     6067       +4     
==========================================
  Hits         7860     7860              
- Misses      10570    10573       +3     
- Partials     2414     2418       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.