Skip to content

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

@grochlitz-evertz

Description

@grochlitz-evertz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions