openapi
openapi copied to clipboard
recursion limit exceeded (and seg faults with increased python recursion limit)
I believe there is an infinite loop in the recursion in the utils _do_resolve
function. I have tried to replicate the issue from building out some of my own config files but haven't been able to do so. I have supplied our config file since its what is currently causing the issue in hopes that you have a better grasp than myself on what the issue might be.
Most of the Objects in this are either a LocalPlugin
or RemotePlugin
.
Some history behind our configuration file here. Our project is an open source Spring boot project (https://github.com/racker/salus-telemetry-monitor-management) and we are generating the swagger from https://github.com/kongchen/swagger-maven-plugin.
Github doesn't allow the uploading of yml files so I just changed the extension.
swagger.txt
Please let me know if you need more information or clarification from me.
I have the same problem, but only with version 0.7.0. Pinning back to 0.6.0 resolves the problem for me.
One other data point that may/may not be relevant: 0.7.0 worked fine in a venv on my MacBook running Python 3.6.6 but failed in a venv running Python 3.6.8 on a CentOS 7 system. The only package differences between the two were that pyinotify==0.9.6 gets pulled in (for some reason) on Linux but not on my Mac, but I don't think that's relevant.
I got the same issue and I solved it by using .. openapi:httpdomain:: specs/swagger-v4.json
instead of .. openapi:: specs/swagger-v4.json
By default httpdomain_old
is used which is cause this error
.. openapi:httpdomain
is not feature complete yet. I'll try to finish it as soon as possible. Maintaining the old version is so annoying that I usually postpone it to the point I completely forget about the issue.
FYI
I got the error too using master on a openapi v3 specification. It disappears if I remove a recursive reference within a components.schemas.
Switching from .. openapi::
to .. openapi:httpdomain::
solved it.
running 0.8.1
version and .. openapi:httpdomain::
doesn't seem to be supported there, yet I'm running into the same problem, is there any solution for the newer version? thanks