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

[develop 2.0] Https scheme does not work

Open mkrouwer opened this issue 12 years ago • 4 comments

So I've got my whole spec almost entirely working! The only last problem i'm having is that when you specify a "https" scheme it doesn't work, it replaces the scheme with "http"

mkrouwer avatar Oct 01 '14 17:10 mkrouwer

Also, even if you explicitly put a "https" header in the base path it overwrites it with "http"

mkrouwer avatar Oct 01 '14 23:10 mkrouwer

That is strange. I see this:

https://github.com/wordnik/swagger-js/blob/develop_2.0/lib/swagger-client.js#L670

Which tells me it's going to pull the scheme from the schemes array. Can you put a breakpoint on there and see what you're getting?

fehguy avatar Oct 02 '14 00:10 fehguy

Got it working! I looked at your response to another issue which says to put "/path" in order to use relative paths in a https environment instead of "path", then I specified a host as well as a base path per the 2.0 spec, as well as the scheme and it ended up working, sorry for the confusion and thanks so much for the response!

mkrouwer avatar Oct 02 '14 01:10 mkrouwer

Closing as resolved.

fehguy avatar Dec 30 '14 01:12 fehguy