Open PriyadarshiniGopalS opened 1 year ago
Hi @PriyadarshiniGopalS,
I not sure I understand. The title of the issue suggest that the syntax highlighting is not working.
After spinning up the container, I tried accessing the url http://localhost:8080/?syntaxHighlight=false , but still syntaxHighlight was enabled.
Then this sentence suggest that you want to disable the highlighting but it's always enabled.
Can you please maybe elaborate?
Hi @PriyadarshiniGopalS,
I not sure I understand. The title of the issue suggest that the syntax highlighting is not working.
After spinning up the container, I tried accessing the url http://localhost:8080/?syntaxHighlight=false , but still syntaxHighlight was enabled.
Then this sentence suggest that you want to disable the highlighting but it's always enabled.
Can you please maybe elaborate?
Hi @char0n , I am seeing syntaxHighlight always enabled behavior and trying to disable that, but I was not successful.
I updated the title and description for better clarity.
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.