RapiDoc icon indicating copy to clipboard operation
RapiDoc copied to clipboard

Long field description cut off with no option to expand text for that field

Open grochlitz-evertz opened this issue 6 months ago • 0 comments

When a field description goes beyond a certain length, it gets cut off - with no expand arrow available to expand the text. However, if the openapi spec for that field has certain other definitions, such as an array with amaxItems defined, an arrow appears:

Image

And once that arrow is expanded, you can see the full description.

Image

(you can notice with the highlighting, there is some hidden part below the first highlighted line!)

The description will become fully readable if you toggle on Multiline description for the schema - it would be convenient to also have expansion arrows for each description, not only in cases where there is some additional openapi property like maxItems! Users who are not familiar with RapiDoc may miss the Single line/Multiline description toggle, but understand the expandable arrows.

For now we've just added schema-description-expanded="true" as a workaround, but this starts with every field being fully expanded which takes up a large amount of space in some complex schemas

grochlitz-evertz avatar Jul 03 '25 20:07 grochlitz-evertz