13
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Visual Studio CodeでOpenAPI(Swagger) Editorを使用する

Last updated at Posted at 2023-02-21

1. はじめに

  • OpenAPIのスキーマ定義ファイルをOpenAPI Editorを使って確認したい
  • スキーマ定義のよく間違える型や定義などの誤りを入力時にエディタで構文チェックしてほしい
  • visual Studio Codeのコードを簡単に拡大・縮小できるように設定変更したい

2. OpenAPI(Swagger) Editorのインストール

2.1 Visual Stduio Codeを起動する

image.png

2.2. ExtensionsタブからOpenAPI(Swagger) Editorを選択する

image.png

2.3. installボタンをクリックする

image.png

3. OpenAPI(Swagger) Editorの起動

3.1. ショートカットキー Shift + Alt + P を押す

image.png

3.2. OpenAPI SwaggerUI Previewの表示される

image.png

3.3. 構文チェックを確認する

  • PathsPathにした時の構文チェック結果
    image.png

4. Visual Studio Codeのコード拡大・縮小の設定

4.1. Settingsを選択する

image.png

4.2. Mouseで検索し、Editor: Mouse Wheel Zoom にチェックする

image.png

4.3. Ctrl+ ホイール操作でコードの拡大・縮小ができる

  • 拡大
    image.png

  • 縮小
    image.png

5. 参考文献

13
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?