Skip to content

Comments

fix(zod): no omit for z.union#2368

Merged
stijnvanhulle merged 4 commits intokubb-labs:mainfrom
hyoban:1-24-fix-union-omit
Jan 24, 2026
Merged

fix(zod): no omit for z.union#2368
stijnvanhulle merged 4 commits intokubb-labs:mainfrom
hyoban:1-24-fix-union-omit

Conversation

@hyoban
Copy link
Contributor

@hyoban hyoban commented Jan 24, 2026

🎯 Changes

https://github.com/kubb-labs/kubb/actions/runs/21300836438/job/61318314066?pr=2367

I saw this error in the CI from #2367, and it appears that I cannot use omit on a Zod union. I am trying to work around this approach for now.

If you have any feedback—or rather, if there is a better way to implement this—please let me know.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with pnpm run test.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is for the docs (no release).

@changeset-bot
Copy link

changeset-bot bot commented Jan 24, 2026

🦋 Changeset detected

Latest commit: e437387

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 19 packages
Name Type
@kubb/plugin-zod Patch
@kubb/plugin-client Patch
@kubb/plugin-mcp Patch
@kubb/plugin-react-query Patch
@kubb/plugin-solid-query Patch
@kubb/plugin-svelte-query Patch
@kubb/plugin-swr Patch
@kubb/plugin-vue-query Patch
@kubb/cli Patch
@kubb/core Patch
@kubb/mcp Patch
@kubb/oas Patch
@kubb/plugin-cypress Patch
@kubb/plugin-faker Patch
@kubb/plugin-msw Patch
@kubb/plugin-oas Patch
@kubb/plugin-redoc Patch
@kubb/plugin-ts Patch
kubb Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the bug Something isn't working label Jan 24, 2026
@dosubot
Copy link

dosubot bot commented Jan 24, 2026

Related Documentation

Checked 1 published document(s) in 0 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

@hyoban hyoban force-pushed the 1-24-fix-union-omit branch 2 times, most recently from adba845 to 61c198c Compare January 24, 2026 06:19
@hyoban hyoban changed the title fix(zod): no omit for union fix(zod): no omit for z.union Jan 24, 2026
@hyoban hyoban mentioned this pull request Jan 24, 2026
4 tasks
@hyoban hyoban force-pushed the 1-24-fix-union-omit branch from 15dbedd to 61c198c Compare January 24, 2026 06:41
@hyoban hyoban marked this pull request as draft January 24, 2026 07:08
@hyoban hyoban force-pushed the 1-24-fix-union-omit branch from 8de2cbc to 61c198c Compare January 24, 2026 11:37
@hyoban hyoban force-pushed the 1-24-fix-union-omit branch from 61c198c to 77ec2fd Compare January 24, 2026 12:08
@hyoban hyoban marked this pull request as ready for review January 24, 2026 12:27
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 24, 2026

More templates

@kubb/cli

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/cli@2368

@kubb/core

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/core@2368

kubb

npm i https://pkg.pr.new/kubb-labs/kubb@2368

@kubb/mcp

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/mcp@2368

@kubb/oas

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/oas@2368

@kubb/plugin-client

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-client@2368

@kubb/plugin-cypress

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-cypress@2368

@kubb/plugin-faker

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-faker@2368

@kubb/plugin-mcp

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-mcp@2368

@kubb/plugin-msw

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-msw@2368

@kubb/plugin-oas

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-oas@2368

@kubb/plugin-react-query

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-react-query@2368

@kubb/plugin-redoc

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-redoc@2368

@kubb/plugin-solid-query

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-solid-query@2368

@kubb/plugin-svelte-query

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-svelte-query@2368

@kubb/plugin-swr

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-swr@2368

@kubb/plugin-ts

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-ts@2368

@kubb/plugin-vue-query

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-vue-query@2368

@kubb/plugin-zod

npm i https://pkg.pr.new/kubb-labs/kubb/@kubb/plugin-zod@2368

unplugin-kubb

npm i https://pkg.pr.new/kubb-labs/kubb/unplugin-kubb@2368

commit: e437387

@stijnvanhulle
Copy link
Collaborator

@all-contributors please add @hyoban for code

@allcontributors
Copy link
Contributor

@stijnvanhulle

I've put up a pull request to add @hyoban! 🎉

@stijnvanhulle stijnvanhulle merged commit 131068a into kubb-labs:main Jan 24, 2026
14 checks passed
@stijnvanhulle
Copy link
Collaborator

@hyoban looks good! Thanks for having a look 😊

@github-actions github-actions bot mentioned this pull request Jan 24, 2026
@github-actions
Copy link
Contributor

🤖 Hello there,

We just published version 4.18.5 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

1 similar comment
@github-actions
Copy link
Contributor

🤖 Hello there,

We just published version 4.18.5 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

Copilot AI mentioned this pull request Jan 24, 2026
4 tasks
@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working @kubb/plugin-zod

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants