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

Deactivating SyntaxHighlight does not seem to work? #18

Closed
loldotenv opened this issue Sep 22, 2022 · 0 comments
Closed

Deactivating SyntaxHighlight does not seem to work? #18

loldotenv opened this issue Sep 22, 2022 · 0 comments
Labels
☢️ Bug Something isn't working

Comments

@loldotenv
Copy link

loldotenv commented Sep 22, 2022

I put the following config in my code to turn off syntax highlighting. However, I still get syntax highlights in Swagger UI and for some larger responses it is awfully slow. Any comments on this?

app.Get("/swagger/*", swagger.New(swagger.Config{
  SyntaxHighlight: &swagger.SyntaxHighlightConfig{
    Activate: false,
    Theme:    "",
  },
}))

Expected Behavior
Syntax highlighting should be deactivated.

Current Behavior
Syntax highlighting is still on. For some larger responses it could be really slow.

@ReneWerner87 ReneWerner87 added the ☢️ Bug Something isn't working label Sep 22, 2022
@arsmn arsmn closed this as completed Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☢️ Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants