Open alexrejto opened 2 years ago
Same issue here:
"defaultModelExpandDepth" is just broken currently. Seems to be some kind of regression as this used to work in older versions.
The config option is working correctly in 4.6.2. Issue comes up in 4.7.0.
I also wanted to upgrade to latest version but this is a deal-breaker. As an additional note, this happens for all models that have a value greater than the one specified in defaultModelExpandDepth.
Hello,
I'll take a look at it today :)
Hello you all,
I created a PR to fix this issue -> https://github.com/swagger-api/swagger-ui/pull/8186
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition: This request body is referenced by a POST request in the request body.
Swagger-UI configuration options:
Describe the bug you're encountering
When
defaultModelExpandDepth
is 3 or larger, the requestBody is rendered as below on load. Notably, the string-typed name and description fields are hidden behind the carat.Expected rendering, shown below, is only accessible if
defaultModelExpandDepth
is 2 or less.Additional context or thoughts
Please let me know if you need any additional information! I am happy to help.