Skip to content

Update with nullable, optional, defaults, and disallowed keys#28

Open
rhinodavid wants to merge 1 commit into
colinhacks:masterfrom
rhinodavid:david/pr
Open

Update with nullable, optional, defaults, and disallowed keys#28
rhinodavid wants to merge 1 commit into
colinhacks:masterfrom
rhinodavid:david/pr

Conversation

@rhinodavid

Copy link
Copy Markdown

Colin -- here's a quick-and-dirty update of you toZod package.

I would love to see a mature version of this get upstreamed into zod.

-d

@karlhorky

Copy link
Copy Markdown

This would be great if this could be upstreamed as a first-class part of Zod! One last big thing that is missing vs Yup.

It would also close this feature request here:

cc @JacobWeisenburger @rphlmr @colinhacks

@karlhorky

karlhorky commented May 16, 2023

Copy link
Copy Markdown

Some feedback that the community wants this over on Twitter:

Alex / KATT: I often build @zodtypes schemas based on interfaces from libraries etc - is there a nice utility for that?

I spent a few minutes doing this but I think the error messages could be more contextual

Source: https://twitter.com/alexdotjs/status/1658409815536812032

@hungify2022

Copy link
Copy Markdown

@rhinodavid
It saves my day
Thanks a lot ❤️

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.

3 participants