Skip to content

Swagger Viewer lets you preview and validate Swagger 2.0 and OpenAPI files as you type in Visual Studio Code.

License

Notifications You must be signed in to change notification settings

arjun-g/vs-swagger-viewer

Folders and files

NameName
Last commit message
Last commit date
May 1, 2016
May 15, 2016
May 15, 2016
May 1, 2016
May 1, 2016
May 1, 2016
May 1, 2016
May 15, 2016
Aug 28, 2016
Aug 28, 2016
May 1, 2016
Aug 28, 2016
May 1, 2016
May 1, 2016

Repository files navigation

Swagger Viewer

Swagger Viewer lets you preview swagger files as you type in Visual Studio Code.

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

To start

  • Open the swagger file and press F1.
  • Run the Command Preview Swagger.

OR

  • Press Shift + Alt + P

THEN

  • Either:
    1. Copy the URL shown in the message box. (Eg. https://localhost:9000/)
      • Open in any latest browser and see your changes reflecting in real time as you type in the editor.
    2. Click on Open to open the preview in your default browser.

Swagger Preview

Change Default Port

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

Swagger Preview Settings

v1.2.0 Changes

  • Added Open button in message box. (By @pmentz #3
  • Added shortcut Shift + Alt + P to run the command
  • Ability to change default port from User/Workspace Settings.

Credits

Swagger Viewer utilizes the following open source projects

About

Swagger Viewer lets you preview and validate Swagger 2.0 and OpenAPI files as you type in Visual Studio Code.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published