RapiDoc
RapiDoc copied to clipboard
Bug: long markdown monospace text in description in schema is not wrapped correctly
As explained in the title. Must be switched to multi line description.
Same happens in "schema-style=table" but if zoomed in, the descriptions completely disappear (not sure if this is a bug or intended behavior):
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>