Open dsinghvi opened 1 month ago
Hey, mind if I hop on this one? I think I have an idea of how you could detect cycles for this
Hey, mind if I hop on this one? I think I have an idea of how you could detect cycles for this
Absolutely & welcome to Fern! We review contributor PRs within 5 business days and are always up for chatting through questions you have here in the comments.
Draft PR is open here. One thing I'm noticing in the E2E testing is that there are some recursive types already defined in test files, like this one. How do we want to update this?
Describe the bug
fern check
does not detect infinitely recursive types.To reproduce
Create the following yaml file and run
fern check
.Here is a fern definition with the repro recursive.zip
Expected behavior
The CLI should emit an error along the lines of
Node is a cyclic type
and then print out the cycleNode -> node
.Additional context
This should be added as an additional validation rule in the validation directory.