swagger-markdown

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 6 Imported by: 0

README

swagger-markdown

Converts a swagger or OpenAPI file to MarkDown

Installation

Using go install
go install github.com/omid/swagger-markdown@latest
From source
git clone https://github.com/omid/swagger-markdown.git
cd swagger-markdown
go build

Usage

swagger-markdown -i <inputFile> -o <outputFile>
Example
swagger-markdown -i ./testdata/sample-swagger.yaml -o ./testdata/sample-output.md
Development Usage

If you're developing or testing locally:

go run main.go -i ./testdata/sample-swagger.yaml -o ./testdata/sample-output.md

Documentation

Overview

Package main provides a CLI tool to convert Swagger/OpenAPI specifications to Markdown documentation. The tool reads YAML or JSON OpenAPI files and generates structured Markdown with API overview, path documentation, and schema definitions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL