swagger-ui
swagger-ui copied to clipboard
Button to toggle a preview of html returned in a response
I am using Swagger UI to document a service, and one of the endpoints returns embeddable content. Swagger UI renders the code as HTML, for reasons described in https://github.com/swagger-api/swagger-ui/issues/1748 and https://github.com/swagger-api/swagger-ui/issues/3881. However, I found it useful to extend Swagger UI with a button to toggle rendering the html inline, so that it is easy to visualize and interact with the response from the server.
Screenshots are below. Notice the Show/Hide preview button in the bottom left corner. Its a small change that adds a really valuable feature without breaking any existing behaviour (vdwees@1344e49)
Would a formal PR be welcome?
This would be awesome
please do this
Does anyone know a patch like this, but for the latest swagger-ui version
any news about this ?