You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The crate docs says that PhantomData<T> currently translates to the Zod schema T. This should not be the case; PhantomData<T> does not contain a T and is thus serialized as a unit struct. It merely appears to contain a a T for the sake of subtyping/variance, which I believe is irrelevant for this crate.
The text was updated successfully, but these errors were encountered:
The crate docs says that
PhantomData<T>
currently translates to the Zod schemaT
. This should not be the case;PhantomData<T>
does not contain aT
and is thus serialized as a unit struct. It merely appears to contain a aT
for the sake of subtyping/variance, which I believe is irrelevant for this crate.The text was updated successfully, but these errors were encountered: