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 fdee054 commit fa14af2Copy full SHA for fa14af2
tools/spectral/ipa/rulesets/functions/utils/resourceEvaluation.js
@@ -66,7 +66,6 @@ export function isSingletonResource(resourcePaths) {
66
if (resourcePaths.length === 1) {
67
return resourceBelongsToSingleParent(resourcePaths[0]);
68
}
69
- // TODO check for POST?
70
const additionalPaths = resourcePaths.slice(1);
71
return additionalPaths.every(isCustomMethodIdentifier);
72
@@ -83,8 +82,7 @@ export function isStandardResource(resourcePaths) {
83
82
return false;
84
85
86
87
- return !resourceBelongsToSingleParent(resourcePaths[0]);
+ return true;
88
89
if (resourcePaths.length === 2) {
90
return isSingleResourceIdentifier(resourcePaths[1]);
0 commit comments