Skip to content
Discussion options

You must be logged in to vote

I need the array of keys to remove all unwanted keys from the object (without really having to validate it). From v3 onwards, Zod is removing keys by default when we parse, so as a workaround I am just parsing the object when I need to "trim" it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@colinhacks
Comment options

@maneetgoyal
Comment options

Answer selected by maneetgoyal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants