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
I am running swaggerapi/swagger-ui using docker in my local and syntaxHighlighting is not working as expected with syntaxHighlight=false query-parameter. I tried various approaches to disable syntaxHighlighting.
After each approach, I accessed this url http://localhost:8080/?syntaxHighlight=falseand expected syntaxHighlighting to be disabled for all the request & response body. But all are enabled by default.
Approach 1:
use docker-compose.yaml with QUERY_CONFIG_ENABLED: "true"
spin up the container using the command docker compose up.
Please let me know whether I am missing something here.
The text was updated successfully, but these errors were encountered:
PriyadarshiniGopalS
changed the title
SyntaxHighlight not working with latest swagger-ui
SyntaxHighlight not working with latest swaggerapi/swagger-ui
Nov 23, 2022
Then this sentence suggest that you want to disable the highlighting but it's always enabled.
Can you please maybe elaborate?
PriyadarshiniGopalS
changed the title
SyntaxHighlight not working with latest swaggerapi/swagger-ui
SyntaxHighlight always enabled with latest swaggerapi/swagger-ui
Nov 24, 2022
Q&A (please complete the following information)
Describe the bug you're encountering
I am running swaggerapi/swagger-ui using docker in my local and syntaxHighlighting is not working as expected with
syntaxHighlight=false
query-parameter. I tried various approaches to disable syntaxHighlighting.After each approach, I accessed this url
http://localhost:8080/?syntaxHighlight=false
and expected syntaxHighlighting to be disabled for all the request & response body. But all are enabled by default.Approach 1:
docker compose up
.docker-compose.yaml
Approach 2:
docker build -t <image-name> .
docker run -p 8080 <image-name>
Dockerfile
Approach 3: (same as approach #2 with swagger-config.json)
Followed steps mentioned in Approach2, but query configuration itself is not enabled.
Dockerfile
swagger-config.json
Please let me know whether I am missing something here.
The text was updated successfully, but these errors were encountered: