swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

Allow more selective configuration on where syntax highlighting should be used

Open M-Reimer opened this issue 3 years ago • 2 comments

Is your feature request related to a problem?

We use OpenAPI for an API which does some backend calculations and deliver a result to the frontend based on its request.

The request is relatively small. Especially when you manually enter it in the "Try it out" mode. Also the example for the response is pretty small. The only thing that is really huge is the actual response if it comes from the server.

I really like to have syntax highlighting for as much as possible. It makes reading the JSON much easier. But for the big response JSON the whole syntax highlighting process just takes way too long. This is the reason why I currently have syntax highlighting completely off. Usability is more important than nice look.

Describe the solution you'd like

It would be great if enabling or disabling syntax highlighting was more selective. Actually I want to disable it for the result in "Try it out" only as that's what takes too long. Everywhere else I would love to have some syntax highlighting.

M-Reimer avatar Nov 13 '21 10:11 M-Reimer

It would also be nice to disable it for certain Methods that are known to return an extremely large amount of JSON

BroMarduk avatar Nov 17 '21 04:11 BroMarduk

Any progress in this ticket?

ali-naderi avatar Jan 29 '24 17:01 ali-naderi