An open source toolkit for editing JSON swagger files.
- Supports editing the API path summary and description fields by using Markdown.
- Converts multi-line Markdown to single-line Markdown, which is required for insertion into a JSON Swagger file.
- Applies a consistent JSON document format.
- Uses the Microsoft System.Text.Json library.
- Provides a way to extract the summary and description in JSON format without saving to a Swagger file.
- Supports quick insert of Markdown or Docs Markdown constructs like notes and tips.
- Configurable character escaping.
- Support for editing more Swagger fields.
- Autorest validation.
-
To get started, drop a JSON Swagger file onto the path textbox. You can test the app by using this sample Swagger file.
-
In the Select an API tag list, select an API tag. The list contains all tags from the Swagger file.
-
In the Select an API operation list, select an operation. The list contains all operationIds from the Swagger file that are relevant to the selected tag.
-
Edit the summary, the description, or both fields. For the description, you can use the snippet buttons such as Table to add a construct at the current cursor position.
-
Optionally, select one of the Get JSON buttons to convert summary or description content to JSON and save it in your system clipboard. This option doesn't save changes to the Swagger file.
-
Select Undo changes or Save to swagger to discard or save your edits for the current API page. If you navigate to a new API page without first selecting Save to swagger, the app discards any edits.
Verify your changes in a diff viewer.
You can use Visual Studio to compile and install the app.
-
Open the project in Visual Studio.
-
From the menu bar, select Build > Publish....
-
Select the option for publishing to a folder, and then select Finish.
-
Select Show all settings.
-
Select Framework-dependent and Produce single file in the profile settings, and note the Target location of the compiled executable.
-
Select Publish.