We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66f89a4 commit d3e2af6Copy full SHA for d3e2af6
packages/openapi-ts/src/openApi/shared/utils/operation.ts
@@ -61,13 +61,14 @@ export const operationToId = ({
61
}): string => {
62
let result: string;
63
64
+ const targetCase = context.config.output.case ?? 'camelCase';
65
if (
66
id &&
67
(!context.config.plugins['@hey-api/sdk'] ||
68
context.config.plugins['@hey-api/sdk'].operationId)
69
) {
70
result = stringCase({
- case: 'camelCase',
71
+ case: targetCase,
72
value: sanitizeNamespaceIdentifier(id),
73
});
74
} else {
@@ -77,7 +78,7 @@ export const operationToId = ({
77
78
.replace(/[/:+]/g, '-');
79
80
81
82
value: `${method}-${urlWithoutPlaceholders}`,
83
84
}
0 commit comments