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.47k stars 8.96k forks source link

Swagger-ui : Issue with model renderer layout for deeply nested objects. #6362

Open agnihotrivarsha opened 4 years ago

agnihotrivarsha commented 4 years ago

We use swagger-ui to render the documentation for the APIs in our platform. It works mostly well and solves lot of the problems.

But the model renderer is causing us layout problems with deeply nested objects. It's indentation is strange and grid-like and as we expand properties we push the content outside of the available area.

Is it possible if 1) We tweak or bend the current renderer to layout its property differently. or 2) We can replace wholesale the embedded component.

We are in between of our implementation and actually stuck. Please suggest at the earliest.

tim-lai commented 4 years ago

@agnihotrivarsha Can you provide screenshots where this is an issue? To answer specifically, 1) if you provide a PR with UI fixes, we will review, and 2) this is possible with a plugin, but if it is just a UI issue with no other functionality, I'd be interested in a PR.

sakshiDeshmukh17 commented 7 months ago

I am also getting a similar issue wherein for deeper levels of nesting in model, as we expand the content goes outside of the available area. As the level of nesting increases, it displays the content as shown in the screenshot below( one character below another). Is this a known issue ? If yes is there any workaround for handling this ? screenshot