Forum Discussion

AnujPhoenix's avatar
AnujPhoenix
Occasional Visitor
5 months ago

Swagger-UI Rendering Issue - [Maximum call stack size exceeded]

Q&A (please complete the following information)
OS: Windows
Browser: Chrome
Version: org.springdoc:springdoc-openapi-ui:1.7.0
Method of installation: Gradle Artifactory
Swagger-UI version: 1.7.0
Swagger/OpenAPI version: org.springdoc:springdoc-openapi-ui:1.7.0


Swagger/OpenAPI definition:
NONE-NA

Swagger-UI configuration options:
NONE-NA

 

How can we help?
My POJO for Response is a big object and when I try to hit a GET or a POST request I see swagger-ui rendering errors like below :

RangeError: Maximum call stack size exceeded

something similar to what is mentioned here(https://github.com/swagger-api/swagger-ui/issues/4411) and here(https://github.com/swagger-api/swagger-ui/issues/4411#issuecomment-405628886).

I am on JDK 11 and SpringBoot 2.7.13, so I can't use openAPI 3, I have to stick with above versions.
What do you advise here please?

 

What I have tried till now :

@parameters(hidden=true)
SpringDocUtils.....addAnnotationsToIgnore()
springdoc.swagger-ui.default-models-expand-depth=-1
None of the above could solve my problem!!

No RepliesBe the first to reply