© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
.default('') on Zod doing nothing - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
•
3 replies
deforestor
.default('') on Zod doing nothing
I have a validator for the profilePictureUrl that sets the default to an empty string
.
. or so I thought
. I
'm getting errors like
:
Theo's Typesafe Cult
Join
27,305
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Zod preprocess doesn't return default value
TTC
Theo's Typesafe Cult / questions
3y ago
ZOD
TTC
Theo's Typesafe Cult / questions
3y ago
zod form
TTC
Theo's Typesafe Cult / questions
3y ago