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 6d84212 commit 1e8e21fCopy full SHA for 1e8e21f
tools/spectral/ipa/rulesets/functions/utils/resourceEvaluation.js
@@ -20,8 +20,10 @@ export function isResourceCollectionIdentifier(path) {
20
/**
21
* Checks if a path represents a single resource. For example:
22
* '/resource/{id}' returns true
23
+ * '/resource/{resourceId}/child/{childId}' returns true
24
* '/resource/{id}/child' returns false
- * '/resource/{id}/{id}' returns false
25
+ * '/resource' returns false
26
+ * '/resource/child/{id}' returns false
27
*
28
* @param {string} path the path to evaluate
29
* @returns {boolean} true if the path represents a single resource, false otherwise
0 commit comments