Skip to content

Commit adadadf

Browse files
TakehiroTadaclaude
andcommitted
fix: migrate deprecated @hey-api/sdk operationId option to operations.nesting
@hey-api/openapi-ts 0.99 deprecates the sdk plugin's boolean operationId option. operationId: false maps internally to operations: { nesting: 'id' }, so pass the new option directly to silence the deprecation warning while keeping --noOperationId behavior identical. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011dPzdeZL1kurBr7De3rYKN
1 parent d31dc14 commit adadadf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/generate.mts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ export async function generate(options: LimitedUserConfig, version: string) {
3333
formattedOptions.noOperationId
3434
? {
3535
name: "@hey-api/sdk" as const,
36-
operationId: false,
36+
// `operationId: false` was deprecated in favor of `operations.nesting`
37+
operations: {
38+
nesting: "id" as const,
39+
},
3740
}
3841
: "@hey-api/sdk";
3942

0 commit comments

Comments
 (0)