Swagger editor slow for swagger json with > 10000 lines
See original GitHub issueQ | A |
---|---|
Bug or feature request? | Bug |
Which Swagger/OpenAPI version? | 2.0 |
Which Swagger-Editor version? | v3.1.8 |
How did you install Swagger-Editor? | npm install |
Which broswer & version? | Chrome Version 61.0.3163.100 |
Which operating system? | Mac OSX 10.11.6 |
I can’t post my swagger configuration here since it’s really long (over 10k lines).
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:14 (7 by maintainers)
Top Results From Across the Web
swagger has issue with large swagger.json file - Stack Overflow
now my team document project with swagger 2.0 but we have 20000 lines in swagger.json and that's a messy and also has some...
Read more >Webcast: How We Built the Online Swagger Editor - YouTube
Swagger is much more than just a way to describe RESTful APIs. It is a powerful collection of tools that works across an...
Read more >SwaggerUI is Slow – How to speed it up in ASP.Net Core
Swagger lets you easily render your APIs for documentation or testing needs. When you render large JSON results, the rendering can be very...
Read more >Interactive API documentation - GitLab Docs
Introduces the interactive documentation tool for the GitLab API. About the OpenAPI specification. The OpenAPI specification (formerly called Swagger) defines a ...
Read more >Generating a Swagger JSON File
json file in the SOAP UI tool using the Import swagger option and use the available rest services in TIBCO MDM. Copyright ©...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@cabbonizio, you can pass any valid Swagger-UI configuration item to Swagger-Editor, and it will hand off the value to the underlying Swagger-UI instance 😄 Setting
docExpansion: "none"
ordefaultModelExpandDepth: 0
should help with your specific issue.@niculistana my apologies! I have seen that email, I just didn’t put two and two together here 😄
As Ron mentioned, we did look at your definition, and found the bottleneck to be in Swagger-Client’s dereferencing plugin, which takes ~30 seconds to run. This appears to be the source of the lion’s share of the slowness you’re seeing.
We do know of ways to improve that area of Swagger-Client, and the level of slowness there puts it pretty high on our performance todo list, but I can’t give an ETA on it being fixed.
In the meantime, reducing your $ref density and splitting your definition into parts is a good stopgap measure.