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
Example Swagger/OpenAPI definition: not relevant
Swagger-UI configuration options: default options (React)
Describe the bug you're encountering
The response body that is shown when trying out an API endpoint uses syntax highlighting.
This highlighting is broken and highlights the response wrong. In my case there are many hexadecimal string-IDs in the response which don't get recognized as strings, causing many HTML tags to alternate between a character and a number (see screenshot), making the response hard to read and causing the browser tab to hang on huge responses.
To reproduce...
Steps to reproduce the behavior:
Try out an API that returns the following JSON response
Syntax highlighting should work correctly, as it did in swagger-ui-react version 3.32.1
Screenshots
Broken
Expected (version 3.32.1)
Additional context or thoughts
It seems the strings in the response are highlighted from their end to the beginning of the next string, like if the first quote is overlooked. The JSON itself has a valid syntax.
The issue exists even in the latest version (3.35.0).
The text was updated successfully, but these errors were encountered:
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition: not relevant
Swagger-UI configuration options: default options (React)
Describe the bug you're encountering
The response body that is shown when trying out an API endpoint uses syntax highlighting.
This highlighting is broken and highlights the response wrong. In my case there are many hexadecimal string-IDs in the response which don't get recognized as strings, causing many HTML tags to alternate between a character and a number (see screenshot), making the response hard to read and causing the browser tab to hang on huge responses.
To reproduce...
Steps to reproduce the behavior:
Expected behavior
Syntax highlighting should work correctly, as it did in
swagger-ui-react
version3.32.1
Screenshots
Broken
Expected (version
3.32.1
)Additional context or thoughts
It seems the strings in the response are highlighted from their end to the beginning of the next string, like if the first quote is overlooked. The JSON itself has a valid syntax.
The issue exists even in the latest version (
3.35.0
).The text was updated successfully, but these errors were encountered: