Skip to content

v1.9.0

Choose a tag to compare

@TristanSpeakEasy TristanSpeakEasy released this 14 Oct 04:02
· 250 commits to main since this release
0641013

🔄 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

  1. Whitelist mode - Keep only matching extensions
  2. Blacklist mode - Remove only matching extensions (existing behavior, new format)
  3. Combined mode - Whitelist overrides blacklist for precise control
  4. Default - Remove all extensions (unchanged)

📝 Configuration Examples

Whitelist (easier to maintain):

extensionPatterns:
  keep:
    - "x-speakeasy-*"  # Keep only Speakeasy extensions

Blacklist:

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 ExtensionFilter struct
  • 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

  • 0641013 refactor: improve extension pattern filtering architecture (#63)

Full Changelog: v1.8.0...v1.9.0

Released by GoReleaser.