Skip to content

Commit 6b36116

Browse files
feat: expose operationId for use in templates
1 parent 7624b95 commit 6b36116

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/client/interfaces/Operation.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import type { OperationCodegen } from './OperationCodegen';
66
export interface Operation extends OperationParameters {
77
service: string;
88
name: string;
9+
operationId: string | null;
910
summary: string | null;
1011
description: string | null;
1112
deprecated: boolean;

src/templates/exportService.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export class {{{name}}}{{{@root.postfix}}} {
2525
{{#if deprecated}}
2626
* @deprecated
2727
{{/if}}
28+
{{#if operationId}}
29+
* {{{escapeComment operationId}}}
30+
{{/if}}
2831
{{#if summary}}
2932
* {{{escapeComment summary}}}
3033
{{/if}}

0 commit comments

Comments
 (0)