Skip to content

Commit d484866

Browse files
author
Sophia Marie Terry
committed
quickfix for legacy custom methods
1 parent a5f2763 commit d484866

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/spectral/ipa/rulesets/functions/utils/operationIdGeneration.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export function generateOperationID(method, path) {
2424
// legacy custom method - use end of path as custom method name
2525
if (!method) {
2626
method = nouns.pop();
27+
resourceIdentifier = resourceIdentifier.slice(0, resourceIdentifier.lastIndexOf('/'));
2728
}
2829

2930
nouns = nouns.map((noun) => capitalize(noun));

0 commit comments

Comments
 (0)