Ask a Question

customize syntaxHighlight for a single endpoint rather than whole json file

snehak
Visitor

customize syntaxHighlight for a single endpoint rather than whole json file

HI Team, 

I have large amounts of data being loaded in swagger response, so I have set the syntaxHighlight property in SwaggerUI to false. Its now loading huge amounts of data faster than usual. BUt the problem is syntaxHighlight was turned off for all the endpoints. I tried to only apply syntaxHighlight to one endpoint but could not get it to work. I am now looking at custom attributes to ignore the syntaxHighlight property for specific endpoints, but I dont see any filters to override this functionality for just one endpoint. 

Question is do we have any work around  for this? is it possible to apply or ignore syntaxHighlight to  only specific endpoints.?

Thank you!

1 REPLY 1
HKosova
SmartBear Alumni (Retired)

Hi @snehak,

 

This is currently not supported. Here's an existing feature request you can track:

https://github.com/swagger-api/swagger-ui/issues/7642


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: