Skip to content

Commit fe6fcd3

Browse files
author
Hampus Joakim Borgos
committed
Better names on methods in services
1 parent 0efe1db commit fe6fcd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openApi/v3/parser/getOperation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { sortByRequired } from './sortByRequired';
1919
export function getOperation(openApi: OpenApi, url: string, method: string, op: OpenApiOperation, pathParams: OperationParameters): Operation {
2020
const serviceName = op.tags?.[0] || 'Service';
2121
const serviceClassName = getServiceClassName(serviceName);
22-
const operationNameFallback = `${method}${serviceClassName}`;
22+
const operationNameFallback = `${method}${url}`;
2323
const operationName = getOperationName(op.operationId || operationNameFallback);
2424
const operationPath = getOperationPath(url);
2525

0 commit comments

Comments
 (0)