Skip to content

feat: Loosen z.strictObject() inside union#5624

Closed
chiichen wants to merge 1 commit into
colinhacks:mainfrom
chiichen:fix-strict-union
Closed

feat: Loosen z.strictObject() inside union#5624
chiichen wants to merge 1 commit into
colinhacks:mainfrom
chiichen:fix-strict-union

Conversation

@chiichen

Copy link
Copy Markdown

similar to #5587

@pullfrog

pullfrog Bot commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

Pullfrog  | Review this ➔pullfrog.com

@chiichen chiichen changed the title Loosen z.strictObject() inside union feat: Loosen z.strictObject() inside union Jan 13, 2026
@colinhacks

Copy link
Copy Markdown
Owner

That other PR was specifically to align Zod's behavior better with TypeScript's intersection behavior. Same logic doesn't apply for unions I'm afraid.

@colinhacks colinhacks closed this Jan 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants