Skip to content

Commit 92be3bb

Browse files
management_api: add compat aliases for DeleteAPIAppliationScope rename
The typo fix (DeleteAPIAppliationScope -> DeleteAPIApplicationScope) renames exported types, an operation const and a client method with no fallback, which breaks anyone calling the old (misspelled) name directly. This adds a hand-written, non-generated shim with deprecated aliases + a thin client method wrapper so old call sites keep compiling.
1 parent 848de6a commit 92be3bb

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

kinde/management_api/compat.go

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Hand-written compatibility shim: not generated by ogen, not touched by `go generate ./...`.
2+
package management_api
3+
4+
import "context"
5+
6+
// Deprecated: use DeleteAPIApplicationScopeOperation. Kept for source
7+
// compatibility with the pre-typo-fix operation name.
8+
const DeleteAPIAppliationScopeOperation = DeleteAPIApplicationScopeOperation
9+
10+
// Deprecated: use DeleteAPIApplicationScopeParams.
11+
type DeleteAPIAppliationScopeParams = DeleteAPIApplicationScopeParams
12+
13+
// Deprecated: use DeleteAPIApplicationScopeRes.
14+
type DeleteAPIAppliationScopeRes = DeleteAPIApplicationScopeRes
15+
16+
// Deprecated: use DeleteAPIApplicationScopeOK.
17+
type DeleteAPIAppliationScopeOK = DeleteAPIApplicationScopeOK
18+
19+
// Deprecated: use DeleteAPIApplicationScopeBadRequest.
20+
type DeleteAPIAppliationScopeBadRequest = DeleteAPIApplicationScopeBadRequest
21+
22+
// Deprecated: use DeleteAPIApplicationScopeForbidden.
23+
type DeleteAPIAppliationScopeForbidden = DeleteAPIApplicationScopeForbidden
24+
25+
// Deprecated: use DeleteAPIApplicationScopeTooManyRequests.
26+
type DeleteAPIAppliationScopeTooManyRequests = DeleteAPIApplicationScopeTooManyRequests
27+
28+
// DeleteAPIAppliationScope invokes DeleteAPIApplicationScope operation.
29+
//
30+
// Deprecated: use DeleteAPIApplicationScope.
31+
func (c *Client) DeleteAPIAppliationScope(ctx context.Context, params DeleteAPIAppliationScopeParams) (DeleteAPIAppliationScopeRes, error) {
32+
return c.DeleteAPIApplicationScope(ctx, params)
33+
}

0 commit comments

Comments
 (0)