Skip to content

Commit 7f2edee

Browse files
CLOUDP-304938: Fix docs
1 parent 226c7a1 commit 7f2edee

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,14 +398,14 @@ testRule('xgen-IPA-105-list-method-response-is-get-method-response', [
398398
{
399399
code: 'xgen-IPA-105-list-method-response-is-get-method-response',
400400
message:
401-
'The schema of each result in the List method response must be the same schema as the response of the Get method. http://go/ipa/105',
401+
'The schema of each result in the List method response must be the same schema as the response of the Get method. http://go/ipa-spectral#IPA-105',
402402
path: ['paths', '/resource', 'get', 'responses', '200', 'content', 'application/vnd.atlas.2024-08-05+json'],
403403
severity: DiagnosticSeverity.Warning,
404404
},
405405
{
406406
code: 'xgen-IPA-105-list-method-response-is-get-method-response',
407407
message:
408-
'The schema of each result in the List method response must be the same schema as the response of the Get method. http://go/ipa/105',
408+
'The schema of each result in the List method response must be the same schema as the response of the Get method. http://go/ipa-spectral#IPA-105',
409409
path: [
410410
'paths',
411411
'/arrayResource',
@@ -420,14 +420,14 @@ testRule('xgen-IPA-105-list-method-response-is-get-method-response', [
420420
{
421421
code: 'xgen-IPA-105-list-method-response-is-get-method-response',
422422
message:
423-
'Could not validate that the List method returns the same resource object as the Get method. The Get method does not have a schema. http://go/ipa/105',
423+
'Could not validate that the List method returns the same resource object as the Get method. The Get method does not have a schema. http://go/ipa-spectral#IPA-105',
424424
path: ['paths', '/resourceTwo', 'get', 'responses', '200', 'content', 'application/vnd.atlas.2024-01-05+json'],
425425
severity: DiagnosticSeverity.Warning,
426426
},
427427
{
428428
code: 'xgen-IPA-105-list-method-response-is-get-method-response',
429429
message:
430-
'Could not validate that the List method returns the same resource object as the Get method. The Get method does not have a schema reference. http://go/ipa/105',
430+
'Could not validate that the List method returns the same resource object as the Get method. The Get method does not have a schema reference. http://go/ipa-spectral#IPA-105',
431431
path: [
432432
'paths',
433433
'/resourceThree',
@@ -482,7 +482,7 @@ testRule('xgen-IPA-105-list-method-response-is-get-method-response', [
482482
{
483483
code: 'xgen-IPA-105-list-method-response-is-get-method-response',
484484
message:
485-
'The schema of each result in the List method response must be the same schema as the response of the Get method. http://go/ipa/105',
485+
'The schema of each result in the List method response must be the same schema as the response of the Get method. http://go/ipa-spectral#IPA-105',
486486
path: ['paths', '/resource', 'get', 'responses', '200', 'content', 'application/vnd.atlas.2024-08-05+json'],
487487
severity: DiagnosticSeverity.Warning,
488488
},

tools/spectral/ipa/rulesets/IPA-105.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ rules:
4343
- Validation ignores responses without schema and non-paginated responses
4444
- Validation ignores resources without a Get method
4545
- Paths with `x-xgen-IPA-exception` for this rule are excluded from validation
46-
message: '{{error}} http://go/ipa/105'
46+
message: '{{error}} http://go/ipa-spectral#IPA-105'
4747
severity: warn
4848
given: '$.paths[*].get.responses[*].content'
4949
then:

0 commit comments

Comments
 (0)