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
169 stars 47 forks source link
openapi swagger swagger-viewer vscode vscode-extension

Marketplace Version Marketplace Downloads

ko-fi

Swagger Viewer - v3.1.2

Swagger Viewer lets you preview Swagger 2.0 and OpenAPI files as you type in Visual Studio Code. Additionally provide intellisense/linting for the files as well.

It works on swagger files in json and yaml format. Preview happens in real time as you type.

Preview

To start

OR

OR

THEN

Swagger Preview

Swagger Context Menu

Configurations

Swagger Settings

Opening In External browser

If you want to preview the changes in external browser change the settings Preview In Browser to true in User/Workspace Settings

THEN

OR

Preview will be automatically opened in default browser.

Change Default Port

Default port of the preview url can be changed by changing the Default Port value in User/Workspace Settings

Show Only File Name

In the preview title the file name along with the full path is displayed by default. It can be changed to show only the file name by changing the Show Only File Name to true in User/Workspace Settings

Change Default Host

Default host(localhost) of the preview url can be changed by changing the swaggerViewer.defaultHost value in User/Workspace Settings

Stop Swagger Viewer Preview Server

To stop the preview server simply click the status bar item.

Stop Swagger Server

Releases

v3.0.0 Changes

v2.2.2 Changes

v2.2.1 Changes

Known Issue

v2.2.0 Changes

v2.1.0 Changes

v2.0.2 Changes

v2.0.0 Changes

v1.7.0 Changes

v1.6.0 Changes

v1.5.0 Changes

v1.4.0 Changes

v1.3.0 Changes

v1.2.0 Changes

Credits

Swagger Viewer utilizes the following open source projects

Contributors