oq openapi.yaml
# or
cat openapi.yaml | oq
# or
curl https://api.example.com/openapi.json | oq- ↑/↓ or k/j - Navigate up/down through items
- Tab - Switch between Endpoints and Components views
- Enter or Space - Toggle fold/unfold for endpoint and component details
- q or Ctrl+C - Quit the application
oq supports both modern major OpenAPI specification versions:
- OpenAPI 3.0.x
- OpenAPI 3.1.x
Both JSON and YAML formats are supported.
go install github.com/plutov/oq@latestgit clone git@github.com:plutov/oq.git
cd oq
go build -o oq .MIT License - see LICENSE file for details.
Contributions are welcome! Please feel free to submit issues and pull requests.
When contributing:
- Ensure tests pass:
go test -v - Test with both OpenAPI 3.0 and 3.1 examples
