-
Notifications
You must be signed in to change notification settings - Fork 762
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
Traversal of large spec broken after #3380 #3385
Comments
I have almost the same problem. I stopped displaying half of the example serializer request bodies and just returns "string" in the example |
Hi everyone, With introducing We are working on finding a different solution to this without limiting traversal. Right now we are looking at traversing the specification twice - first without the |
Hey @glowcloud , thanks for the update! |
Addressed in #3399. |
We decided to leave the limit, but only for the number of patches that we go through in one plugin run. Before this, we were also limiting the traversal of paths, which is why larger specifications, even without nested references, were being incorrectly resolved. We also raised the traversal limit to 3000 patches per plugin run. |
Q&A (please complete the following information)
Content & configuration
Feeding a large spec into swagger-ui is broken after they updated from swagger-client v3.25.1 to 3.25.3. The reason seems to be this commit: a80000d
It just stops traversing the spec when there is a huge number of schemas defined (even though they are not even referenced). There are also no circular references in the spec.
Swagger/OpenAPI definition: https://gist.github.com/am-burban/cc40c1813fa9cb9846747133ae82f689
https://petstore.swagger.io/index.html?url=https://gist.githubusercontent.com/am-burban/cc40c1813fa9cb9846747133ae82f689/raw/72498092c5ce3e04a6e4c24e75f02d2359d57cef/Traversal%2520Bug%2520Repro.yaml#/
Expected behavior
Spec is traversed correctly.
Screenshots
When you remove the
s988
schema, it renders the totally unrelated query param fine again.The text was updated successfully, but these errors were encountered: