arjun-g / vs-swagger-viewer

Swagger Viewer lets you preview and validate Swagger 2.0 and OpenAPI files as you type in Visual Studio Code.
MIT License
170 stars 47 forks source link

Blank/white screen with *.json; *.yaml works fine #26

Closed isawch closed 6 years ago

isawch commented 6 years ago

Hi,

As of the latest update, I've found none of my .json swagger files will preview in the tab/browser, whereas the exact same version in .yaml works fine.

I've tested the json version of my swagger files on the swagger.io site and they render fine. Even exporting those same json files as yaml and previewing in the plugin in VSC also works fine. It just seems there is something wrong/different with the JSON rendering.

Would love some suggestions on how to correct this -- i find this plugin to be an incredibly useful tool and saves a huge amount of time.

aqdaniels-nm commented 6 years ago

Came here looking for solutions. I'm also getting the blank preview screen for .json swagger doc

arjun-g commented 6 years ago

Fixed in #27