Skip to content

Commit 831981c

Browse files
Fix on xgen-IPA-110-collections-response-define-results-array (#615)
1 parent fb8fa9c commit 831981c

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

tools/spectral/ipa/__tests__/IPA110CollectionsResponseDefineResultsArray.test.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,6 @@ testRule('xgen-IPA-110-collections-response-define-results-array', [
230230
},
231231
},
232232
},
233-
errors: [
234-
{
235-
code: 'xgen-IPA-110-collections-response-define-results-array',
236-
message: 'The response for collections must define an array of results containing the paginated resource.',
237-
path: ['paths', '/resources', 'get', 'responses', '200', 'content', 'application/json'],
238-
severity: DiagnosticSeverity.Warning,
239-
},
240-
],
233+
errors: [],
241234
},
242235
]);

tools/spectral/ipa/rulesets/functions/IPA110CollectionsResponseDefineResultsArray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import { resolveObject } from './utils/componentUtils.js';
1414
import { schemaIsPaginated } from './utils/schemaUtils.js';
1515

16-
const RULE_NAME = 'xgen-IPA-110-collections-use-paginated-schema';
16+
const RULE_NAME = 'xgen-IPA-110-collections-response-define-results-array';
1717
const ERROR_MESSAGE = 'The response for collections must define an array of results containing the paginated resource.';
1818

1919
export default (input, _, { path, documentInventory }) => {

0 commit comments

Comments
 (0)