Skip to content

Commit d26ddb5

Browse files
author
Matthew
committed
We're just trying ig
1 parent aa804c0 commit d26ddb5

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/openApi/v2/parser/getOperationName.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import camelCase from 'camelcase';
66
* on a generated name from the URL
77
*/
88
export const getOperationName = (url: string, method: string, operationId?: string): string => {
9+
console.log("What the heck.")
910
if (operationId) {
1011
return camelCase(
1112
operationId

src/openApi/v3/parser/getOperationName.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
import camelCase from 'camelcase';
22

3-
const operations = ["create", "list", "retrieve", "delete", "update"]
3+
const operations = ["create", "list", "retrieve", "delete", "update"];
44

55
/**
66
* Convert the input value to a correct operation (method) classname.
77
* This will use the operation ID - if available - and otherwise fallback
88
* on a generated name from the URL
99
*/
1010
export const getOperationName = (url: string, method: string, operationId?: string): string => {
11+
console.log("Getting operation name")
1112
if (operationId) {
12-
const popped = operationId.split("-").pop()
13+
const popped = operationId.split("-").pop();
14+
console.log(popped);
1315
if (popped && operations.includes(popped)) {
1416
return popped;
1517
}

0 commit comments

Comments
 (0)