Skip to content

Commit

Permalink
Remove ref links from message
Browse files Browse the repository at this point in the history
  • Loading branch information
adilmirz committed Aug 4, 2023
1 parent db3d4df commit 9d615b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/isCollectionResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function handleCollectionResponse(input, opts, context, isOAS2Collection, isOAS3

if (!maxQueryParameter) {
messages.push({
message: 'When returning a paginated collection, include a "max" query parameter (https://developer.cisco.com/docs/api-insights/#!api-guidelines-analyzer)',
message: 'When returning a paginated collection, include a "max" query parameter',
path: [...prettyPath],
});
}
Expand All @@ -178,14 +178,14 @@ function handleCollectionResponse(input, opts, context, isOAS2Collection, isOAS3
if (severity === 1 && !offsetQueryParameter) {

messages.push({
message: 'When supporting offset-based pagination, operations include a "offset" query parameter (https://developer.cisco.com/docs/api-insights/#!api-guidelines-analyzer)',
message: 'When supporting offset-based pagination, operations include a "offset" query parameter',
path: [...prettyPath],
});
}

if (!linkResponseHeader) {
messages.push({
message: 'When returning a paginated collection, include a "Link" header in the response (https://developer.cisco.com/docs/api-insights/#!api-guidelines-analyzer)',
message: 'When returning a paginated collection, include a "Link" header in the response',
path: [
...prettyPath,
'responses',
Expand Down

0 comments on commit 9d615b1

Please sign in to comment.