openapi-cli-tool icon indicating copy to clipboard operation
openapi-cli-tool copied to clipboard

maximum recursion issue

Open 111andre111 opened this issue 4 years ago • 0 comments

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.

111andre111 avatar Apr 09 '20 16:04 111andre111