You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/spectral/ipa/rulesets/IPA-110.yaml
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,8 @@ rules:
12
12
##### Implementation details
13
13
Rule checks for the following conditions:
14
14
- Only applies to List methods (GET operations that return collections of resources)
15
-
- Checks that the 200 response schema references a schema with a name starting with "Paginated"
15
+
- Checks that the 200 response schema references a schema with a name starting with either a name starting with "Paginated" or contain both "totalCount" (integer) and "results" (array) fields
16
+
- If the referenced schema name has "Paginated" prefix, the rule assumes that the schema is paginated and does not check for "totalCount" and "results" fields
Copy file name to clipboardExpand all lines: tools/spectral/ipa/rulesets/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -459,7 +459,8 @@ APIs that return collections of resources must use a paginated response schema.
459
459
##### Implementation details
460
460
Rule checks for the following conditions:
461
461
- Only applies to List methods (GET operations that return collections of resources)
462
-
- Checks that the 200 response schema references a schema with a name starting with "Paginated"
462
+
- Checks that the 200 response schema references a schema with a name starting with either a name starting with "Paginated" or contain both "totalCount" (integer) and "results" (array) fields
463
+
- If the referenced schema name has "Paginated" prefix, the rule assumes that the schema is paginated and does not check for "totalCount" and "results" fields
0 commit comments