Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting in Swagger-ui can't be configured in Springdoc #877

Closed
ErwanLeroux opened this issue Sep 23, 2020 · 2 comments
Closed
Labels
enhancement New feature or request

Comments

@ErwanLeroux
Copy link

The syntax highlighting feature added in swagger-ui v3.30.0 can't configured in springDoc and it's preventing me from disabling it. I want to disable it because it's causing performance issue on large json response

To Reproduce
I'm using the following versions :

  • spring-boot : 2.3.3.RELEASE
  • springdoc-openapi-ui:1.4.7
  • springdoc-openapi-security:1.4.7"

Expected behavior
I'm expecting to be able to deactivate the syntax highlighting

Screenshots
With_highlight
Without_highlighting

Additional context
You can see the difference in the screenshots I provided.
The parameters are here in swagger-ui but i couldn't find where they are used in springdoc

@bnasslahsen
Copy link
Contributor

@ErwanLeroux,

This will be available for the next release:
To disable Syntax use the following property:

springdoc.swagger-ui.syntaxHighlight.activated=false

Property to change the theme will be also available:

springdoc.swagger-ui.syntaxHighlight.theme=monokai

@ErwanLeroux
Copy link
Author

I just tested it, it work like a charm with

springdoc.swagger-ui.syntaxHighlight.activated=false

@bnasslahsen bnasslahsen added the enhancement New feature or request label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants