/oq

Terminal OpenAPI Spec viewer

Primary LanguageGoMIT LicenseMIT

oq - a terminal-based OpenAPI Spec (OAS) viewer

oq preview

Usage

oq openapi.yaml
# or
cat openapi.yaml | oq
# or
curl https://api.example.com/openapi.json | oq

Keyboard Shortcuts

Press ? to see the help screen with all available keyboard shortcuts.

OpenAPI Support

oq supports both modern major OpenAPI specification versions:

Both JSON and YAML formats are supported.

Installation

Using Homebrew (macOS/Linux):

brew install plutov/tap/oq

Or using go install:

go install github.com/plutov/oq@latest

You can also download the compiled binaries from the Releases page.

From source

git clone git@github.com:plutov/oq.git
cd oq
go build -o oq .

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

When contributing:

  1. Ensure tests pass: go test -v
  2. Test with both OpenAPI 3.0 and 3.1 examples