Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Merge zod object inputs #80

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

dca123
Copy link
Contributor

@dca123 dca123 commented Jun 6, 2023

Continuing the work on #64 , this first verifies that each of the input is a zod object before attempting to merge it. This will also fix #78.

I had to remove zod as a dependency, since having it both as a dependency and peer, causes the prototype on the inputs to be undefined. This meant, I couldn't use (input instanceOf z.ZodObject). That's discussed a bit more here - colinhacks/zod#2241

Should I write a test for this ?

@tungvn
Copy link

tungvn commented Nov 15, 2023

Please merge it

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.

Support Base Procedures
3 participants