Re: Use Swagger UI as only a documentation tool

2016-11-18 Thread tony tam
Try opening up the browser console and sharing the error message that you get. > On Nov 18, 2016, at 6:29 AM, Jasmine wrote: > > More info: I am using Swagger 2.0. I tested out the format of the JSON in the > Swagger Editor and it displayed correctly, however the same JSON caused a > CORS erro

Re: Use Swagger UI as only a documentation tool

2016-11-18 Thread Jasmine
More info: I am using Swagger 2.0. I tested out the format of the JSON in the Swagger Editor and it displayed correctly, however the same JSON caused a CORS error with Swagger UI, so I believe it is not a format issue. I know swagger doesn't support web sockets, but I just want to use the nice

Use Swagger UI as only a documentation tool

2016-11-18 Thread Jasmine
I would like to use swagger UI for documenting my websockets. However, I get a "Can't read from server. It may not have the appropriate access-control-origin settings." error when loading. I used the same format in my JSON as I did for my rest api, which worked fine. If I don't care about the t