Skip to content

feat(overlay): scope overrides with match.method and match.path#84

Merged
samzong merged 1 commit into
mainfrom
feat/overlay-path-match
Jul 1, 2026
Merged

feat(overlay): scope overrides with match.method and match.path#84
samzong merged 1 commit into
mainfrom
feat/overlay-path-match

Conversation

@samzong

@samzong samzong commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

What's changed?

  • Add match.method and match.path fields to overlay command overrides
  • Scope overlay application so duplicate commands sharing a use name can be targeted individually
  • Improve command path conflict errors with operationId, HTTP method/path, and command identity
  • Document match.method / match.path in README

Why

  • Duplicate upstream operation IDs can generate the same command name; path-scoped overrides let users rename or customize only the intended operation without affecting siblings

Verification

  • go test ./internal/codegen/render/... ./internal/overlay/...

Allow overlay command overrides to target a specific HTTP operation when
duplicate upstream operation IDs produce the same command name. Improve
conflict errors with operationId, HTTP method/path, and command identity.

Signed-off-by: samzong <samzong.lu@gmail.com>
@samzong samzong merged commit 483cb23 into main Jul 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: support path-scoped overrides for duplicate operationId command conflicts

1 participant