-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Labels
Description
Is your feature request related to a problem? Please describe.
Per a discussion in: #4906
It is possible to create stack overflows with some of the below cases:
- a oneof model which alloF includes the composed schema that includes it
There are probably other cases here. - what about a grandparent, a parent which allof inherrits the grandparent, a child which allof inherrits the parent AND allof inherrits the grandparent
Our code should detect these cycles and stop, warning the user to fix their spec rather than hitting the stack overflow.
Currently we hit a stack overflow.
Describe the solution you'd like
Perhaps error out and warn the user?
Or allow the cycle but stop moving through it after we detect the cycle?
AniketKariya