openapi-cli-tool
openapi-cli-tool copied to clipboard
maximum recursion issue
With one of my swagger files I am getting an issue here:
Failed to load reference. file=swagger-....json $ref=#/definitions/ClusterCrudResponse (maximum recursion depth exceeded in cmp)
I found out I can increase the recursionlimit which I did:
https://docs.python.org/2/library/sys.html#sys.setrecursionlimit
sys.setrecursionlimit(20000)
I checked with jq and found about 13000 keys in the file I have.
But when I increased the value it needs some time and then python crashes with a segmentation fault error: EXC_BAD_ACCESS (SIGSEGV)
.
I found here a blog post that there are solutions for getting out of that situation but I don't know how to adapt it to this python program here. http://neopythonic.blogspot.com/2009/04/tail-recursion-elimination.html
Could you please have a look? Thank you.