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
Building the model with the following specification reports an infinite circular reference because of GroupCondition having a required conditions array.
I do not think this should be reported as a circular reference since Condition uses a oneOf and has at least one option that doesn't cause a cycle.
The behavior is correct, this spec absolutely has an array based circular reference. Disabling the check, will mean that a stack overflow is all but inevitable as the schema generated by inlining all those references, creates an endless loop.
The solution is to stop the stack overflow, but I don't know where it's coming from, there isn't enough information in your report to determine when the stack is exploding.
Building the model with the following specification reports an infinite circular reference because of
GroupCondition
having a requiredconditions
array.I do not think this should be reported as a circular reference since
Condition
uses aoneOf
and has at least one option that doesn't cause a cycle.spec.yml
main.go
Also, using the
IgnoreArrayCircularReferences
causes the validator to crash with a stack overflow error.Please, any ideas on how to solve this?
The text was updated successfully, but these errors were encountered: