-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XML generation leads to "Uncaught RangeError: Maximum call stack size exceeded" #2167
Comments
Please provide us with a spec that reproduces the issue so we can investigate it. |
This example spec reproduces the error on my instance: |
I think this bug occurs if a definition contains two loops of the same reference. The problem is that a model gets even removed from modelsToIgnore if the generator recognized that this model has caused a loop. For example: |
I'm using the latest master version of swagger-ui.
If I define XML as valid consume or respond content type, swagger-ui isn't able to render all resources and aborts the rendering with the error message "Uncaught RangeError: Maximum call stack size exceeded" on the chrome console. If I set 'isXML' in OperationView and ParameterView to false everything works fine.
The swagger input files I want to use contain some recursive definitions.
The text was updated successfully, but these errors were encountered: