swagger-api / swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
https://swagger.io
Apache License 2.0
26.6k stars 8.97k forks source link

swagger-ui page hangs for large response #8260

Open sar191 opened 2 years ago

sar191 commented 2 years ago

Q&A (please complete the following information)

Content & configuration

I'm unable to provide yaml here as Im currently outside my citrix envt. However, the issue is that when I try out an API, swagger-UI hangs for large json response. Takes around 30 mins to complete one request which used to be around 6 seconds with the old version of SpringFox-swagger-ui.

I tried to set springdoc:swagger-ui:syntax-highlight to False but this property is ignored.

Example Swagger/OpenAPI definition:

# your YAML here

Swagger-UI configuration options:

SwaggerUI({
  // your config options here
})
?yourQueryStringConfig

Describe the bug you're encountering

To reproduce...

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Screenshots

Additional context or thoughts

sar191 commented 2 years ago

Please help to set the default value of syntaxHighlight to false.