File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,19 @@ rules:
1010 functionOptions :
1111 notMatch : basic
1212 # #### General #####
13- sps-no-collection-paging-capability :
14- description : " Response bodies from collection endpoints SHOULD offer paging capability."
15- severity : warn
16- given :
$.paths[?([email protected] (/.*\/\{[^}]+\}$/))].get.responses['200'].content.application/json.schema.properties 17- then :
18- - field : " paging"
19- function : truthy
20- - field : " paging.type"
21- function : pattern
22- functionOptions :
23- match : " object"
13+ # See https://atlassian.spscommerce.com/browse/DPE-286
14+ # sps-no-collection-paging-capability:
15+ # description: "Response bodies from collection endpoints SHOULD offer paging capability."
16+ # severity: warn
17+ # given: $.paths[?([email protected] (/.*\/\{[^}]+\}$/))].get.responses['200'].content.application/json.schema.properties 18+ # then:
19+ # - field: "paging"
20+ # function: truthy
21+ # - field: "paging.type"
22+ # function: pattern
23+ # functionOptions:
24+ # match: "object"
25+
2426 # #### Root Element #####
2527 sps-collection-missing-results-array :
2628 description : " Response bodies must have a root element called results and is an array of objects."
You can’t perform that action at this time.
0 commit comments