Schemas with cyclic references
In Zod, I can create circular schemas like this:
I've not been able to achieve the same thing using ArkType. Can anyone help? I need both
typeASchema
, typeBSchema
and typeSchema
, so cannot just create a single large scope.3 Replies
Scopes can handle this fine!
Wow! That's really clear and concise 🤩
Yeah scopes make representing cyclic types much more natural. One of the best things about them!