RapiDoc icon indicating copy to clipboard operation
RapiDoc copied to clipboard

Bug: long markdown monospace text in description in schema is not wrapped correctly

Open Fethbita opened this issue 8 months ago • 0 comments

As explained in the title. Must be switched to multi line description.

Image

Same happens in "schema-style=table" but if zoomed in, the descriptions completely disappear (not sure if this is a bug or intended behavior):

Image

It can be reproduced with the following schema:

{
    "openapi": "3.0.0",
    "paths": {
      "/": {
        "post": {
          "requestBody": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "veryLongNameForAFieldLongLongLong": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string",
                          "description": "Markdown text with a very long monospace text `veryLongNameForAFieldLongLongLongLongLongLongLongLong`."
                        }
                      }
                    },
                    "shortName": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }

And html:

<rapi-doc
    spec-url="../../_/static/test.json"
    render-style="view"
    theme="light"
>
</rapi-doc>

Fethbita avatar Feb 04 '25 13:02 Fethbita