Is there a way to get a partial schema while using an interface to validate the properties? #821
Unanswered
JacobWeisenburger
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use clean architecture, but I keep running into problems.
I'm trying to make a schema and a partial schema for
AccountEntity
.try 1
I tried using
accountSchema: z.Schema<AccountEntity>
, but.partial
doesn't exist onZodType
try 2
I tried using
z.object<AccountEntity>
Is there a way to get a partial of
accountSchema
while using theAccountEntity
interface to validate the properties?Beta Was this translation helpful? Give feedback.
All reactions