Skip to content

Conversation

@chcederquist
Copy link
Contributor

Refactoring generateDependency to not conflate synthetic default imports with namespace imports, as well as adding the possibility to explicitly mark something as a namespace import, in case synthetic default imports are allowed.

Using this new namespace import to guarantee zod is imported as a namespace import.

Fixes #2450

@melloware melloware added the zod Zod related issue label Oct 24, 2025
@melloware melloware merged commit b119209 into orval-labs:master Oct 24, 2025
2 checks passed
zhu-hong pushed a commit to zhu-hong/orval that referenced this pull request Oct 29, 2025
…rval-labs#2472)

* fix(core): added possibility to explicitly mark dependencies as namespace imports

* fix(zod): fixed bug where zod did not correctly use namespace import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

zod Zod related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zod: Zod v4 is recommended to use wildcard import for tree shaking

2 participants