A CLI tool for combining multiple OpenAPI specifications into a single file.
- Combines multiple OpenAPI 3.x specifications
- Supports both YAML and JSON formats
- Cross-platform support (macOS, Linux, Windows)
- Debug mode for detailed operation logs
# Install specific version
go install github.com/haryoiro/oasc/cmd/oasc@v0.1.35
# Install latest version
go install github.com/haryoiro/oasc/cmd/oasc@latest# Install Go 1.24 or later
go install github.com/haryoiro/oasc/cmd/oasc@latest# Basic usage
oasc -f spec1.yaml -f spec2.yaml -o merged.yaml
# Specify output format
oasc -f spec1.yaml -f spec2.yaml -o merged.json --format json
# Enable debug mode
oasc -f spec1.yaml -f spec2.yaml -o merged.yaml --debug-f, --file: Input OpenAPI file paths (can be specified multiple times)-o, --output: Output file path (default: merged.yaml)-F, --format: Output format (json or yaml)--debug: Enable debug logging--version: Show version information
- Go 1.24 or later
- mise for task management
- goreleaser for releases
# Install mise
curl https://mise.jdx.dev/install.sh | sh
# Install development tools
mise install
# Run tests
mise run test# Create release tag (this will push a tag and trigger GitHub Actions)
mise run release-tag 0.1.35MIT License