Skip to content

Commit 1e8e21f

Browse files
docs fix
1 parent 6d84212 commit 1e8e21f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ export function isResourceCollectionIdentifier(path) {
2020
/**
2121
* Checks if a path represents a single resource. For example:
2222
* '/resource/{id}' returns true
23+
* '/resource/{resourceId}/child/{childId}' returns true
2324
* '/resource/{id}/child' returns false
24-
* '/resource/{id}/{id}' returns false
25+
* '/resource' returns false
26+
* '/resource/child/{id}' returns false
2527
*
2628
* @param {string} path the path to evaluate
2729
* @returns {boolean} true if the path represents a single resource, false otherwise

0 commit comments

Comments
 (0)