Repository navigation
v1.9.0
🔄 Refactor: Extension Pattern Filtering
This release refactors the sanitize functionality's extension filtering to support whitelist (Keep) and blacklist (Remove) modes, making it much easier to maintain sanitization configurations.
🌟 Highlights
Addresses Community Feedback: #62 (comment)
"sanitization works only by excluding something, not including. If so, for many cases it will be harder to maintain... Including will be much easier than excluding" - @zdunecki
Now you can use whitelist mode to keep only specific extensions, making configs much easier to maintain!
✨ New Filtering Modes
- Whitelist mode - Keep only matching extensions
- Blacklist mode - Remove only matching extensions (existing behavior, new format)
- Combined mode - Whitelist overrides blacklist for precise control
- Default - Remove all extensions (unchanged)
📝 Configuration Examples
Whitelist (easier to maintain):
extensionPatterns:
keep:
- "x-speakeasy-*" # Keep only Speakeasy extensionsBlacklist:
extensionPatterns:
remove:
- "x-go-*"
- "x-internal-*"Combined (whitelist overrides blacklist):
extensionPatterns:
keep:
- "x-speakeasy-schema-*" # Keep only schema extensions
remove:
- "x-speakeasy-*" # Remove all other Speakeasy extensions⚠️ Breaking Changes
Configuration format changed from:
extensionPatterns:
- "x-go-*"To:
extensionPatterns:
remove:
- "x-go-*"Note: This is a fast follow after v1.8.0 (released 3 hours ago), so impact should be minimal.
🔗 Pull Request
- #63 - Full details and implementation
📦 What's Changed
- Refactored extension filtering architecture with
ExtensionFilterstruct - Added whitelist (Keep) and blacklist (Remove) pattern support
- Whitelist takes precedence in combined mode
- Updated all documentation and examples
- Added comprehensive test coverage (6 new tests)
- Fixed linter issues (gocritic, nilaway)
Full Changelog: v1.8.0...v1.9.0
OpenAPI CLI v1.9.0
This release includes binaries for Linux, macOS, and Windows on both x86_64 and ARM64 architectures.
Installation
Download the appropriate binary for your platform from the assets below, extract it, and add it to your PATH.
Changes
Changelog
Others
Full Changelog: v1.8.0...v1.9.0
Released by GoReleaser.