You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Method of installation: dist bundle, swagger.io demo
Swagger-UI version: 3.18.3
Swagger/OpenAPI version: Swagger 2.0
Content & configuration
Example Swagger/OpenAPI definition:
swagger: '2.0'info:
description: broken line breakversion: 1.0basePath: /testschemes:
- httpssecurityDefinitions:
ApiKeyAuth:
type: apiKeyin: headername: apikeypaths:
/test/brokennewline:
get:
tags:
- Broken New Linesummary: Broken new Line exampledescription: Broken new line YAML exampleoperationId: BrokenNewLineconsumes:
- application/jsonproduces:
- application/jsonsecurity:
- ApiKeyAuth: []parameters:
- name: X-applicationNameAdescription: | This works note the dash on the line bellow e.g. CXMOBILE-56789in: headerrequired: truetype: string
- name: X-applicationNameBdescription: | This should be also be two lines e.g. CXMOBILE156789in: headerrequired: truetype: string
Describe the bug you're encountering
Fails to render new lines for parameter description as expected.
Both parameter descriptions should be two lines. Only the first one is rendered with a
The second without the dash does not get split into a new line. Adding a character like a comma or dash does result in correct render.
To reproduce...
Steps to reproduce the behavior:
Load yaml file
Expected behavior
All new lines in parameter description to be rendered as separate lines in html
The text was updated successfully, but these errors were encountered:
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
Fails to render new lines for parameter description as expected.
Both parameter descriptions should be two lines. Only the first one is rendered with a
The second without the dash does not get split into a new line. Adding a character like a comma or dash does result in correct render.
To reproduce...
Steps to reproduce the behavior:
Load yaml file
Expected behavior
All new lines in parameter description to be rendered as separate lines in html
The text was updated successfully, but these errors were encountered: