question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Swagger editor slow for swagger json with > 10000 lines

See original GitHub issue
Q 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
shockeycommented, Nov 2, 2017

@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" or defaultModelExpandDepth: 0 should help with your specific issue.

1reaction
shockeycommented, Nov 14, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found