Swagger UI version - 2.2.5
Swagger version - 2.0
The schemes portion of my spec is as shown below -
I'm hosting Swagger UI, and my yaml openapi spec on an http server. My api server (which is documented using the openapi spec) on the other hand only accepts https (as clearly defined in the schemes portion of the spec which does not contain http).
However, the try it out feature of Swagger UI ends up making an http request to my api server instead of https!