22 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Hmm... I know at one point there was a request to make this explicitly partial but I didn't think we actually went that way. Lemme look
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Well object schemas are required by default this is a record schema.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
It looks like it falls through to partial if the keys are not explicitly string number or symbol.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
No I think your doing the right thing philosophically it's just possible we aren't handling the enum case properly
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Not sure just now I'm away from my computer 🥲
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I'm trying to see if I can point you in a helpful direction 🤔
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Yeah somehow it is not falling into the case where your enum types extend string but I can't quite think of why. What's the inferred type of your features enum?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Actually I have no idea what TypeOf is lmao
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
At any rate that type clearly extends string unless there is some rule about string enums that I don't know about
What version of Zod are you on?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Haven't really found anything out here other than to notice that string enums do indeed fall into the bottom of that else clause.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Not that I've found 😞