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 cbaf505 commit eba0010Copy full SHA for eba0010
tools/spectral/ipa/rulesets/functions/utils/resourceEvaluation.js
@@ -57,6 +57,10 @@ export function getCustomMethodName(path) {
57
return path.split(':')[1];
58
}
59
60
+export function stripCustomMethodName(path){
61
+ return path.substring(0, path.indexOf(':'));
62
+}
63
+
64
export function isPathParam(string) {
65
return string.startsWith('{') && string.endsWith('}');
66
0 commit comments