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
'List methods must use a paginated response schema. The response should reference a schema with either a name starting with "Paginated" or contain both "totalCount" (integer) and "results" (array) fields.',
'List methods response must reference a paginated response schema. The response should reference a schema that contains both "totalCount" (integer) and "results" (array) fields.',
'List methods must use a paginated response schema. The response should reference a schema with either a name starting with "Paginated" or contain both "totalCount" (integer) and "results" (array) fields.',
230
+
'List methods response must reference a paginated response schema. The response should reference a schema that contains both "totalCount" (integer) and "results" (array) fields.',
'List methods must use a paginated response schema. The response should reference a schema with either a name starting with "Paginated" or contain both "totalCount" (integer) and "results" (array) fields.',
276
+
'List methods response must reference a paginated response schema. The response should reference a schema that contains both "totalCount" (integer) and "results" (array) fields.',
Copy file name to clipboardExpand all lines: tools/spectral/ipa/rulesets/IPA-110.yaml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,8 +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 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
15
+
- Checks if List method has a response schema defined
16
+
- Checks that the 200 response schema references a schema with a "Paginated" prefixand contain both "totalCount" (integer) and "results" (array) fields
Copy file name to clipboardExpand all lines: tools/spectral/ipa/rulesets/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -459,8 +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 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
462
+
- Checks if List method has a response schema defined
463
+
-Checks that the 200 response schema references a schema with a "Paginated" prefixand contain both "totalCount" (integer) and "results" (array) fields
'List methods must use a paginated response schema. The response should reference a schema with either a name starting with "Paginated" or contain both "totalCount" (integer) and "results" (array) fields.';
18
+
constERROR_MESSAGE='List methods response must reference a paginated response schema.';
0 commit comments