Skip to content

Commit 827b98f

Browse files
CLOUDP-304938: Fix docs
1 parent 0a65b64 commit 827b98f

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

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

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,17 @@ rules:
3232
function: 'eachResourceHasListMethod'
3333
xgen-IPA-105-list-method-response-is-get-method-response:
3434
description: >-
35-
The response body of the List method should consist of the same resource object returned by the Get method. Validation checks that the List method results items reference the same schema as the Get method response.<br/>
36-
- Validation applies to List methods for resource collections only<br/>
37-
- Validation applies to json response content only<br/>
38-
- Validation ignores responses without schema and non-paginated responses<br/>
39-
- Validation ignores resources without a Get method<br/>
40-
- Paths with `x-xgen-IPA-exception` for this rule are excluded from validation<br/>
41-
http://go/ipa/105
35+
The response body of the List method should consist of the same resource object returned by the Get method. http://go/ipa/105
36+
37+
##### Implementation details
38+
39+
Validation checks that the List method response contains items property with reference to the same schema as the Get method response.
40+
41+
- Validation applies to List methods for resource collections only
42+
- Validation applies to json response content only
43+
- Validation ignores responses without schema and non-paginated responses
44+
- Validation ignores resources without a Get method
45+
- Paths with `x-xgen-IPA-exception` for this rule are excluded from validation
4246
message: '{{error}} http://go/ipa/105'
4347
severity: warn
4448
given: '$.paths[*].get.responses[*].content'

tools/spectral/ipa/rulesets/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ APIs must provide a List method for resources. http://go/ipa/105
110110
#### xgen-IPA-105-list-method-response-is-get-method-response
111111

112112
![warn](https://img.shields.io/badge/warning-yellow)
113-
The response body of the List method should consist of the same resource object returned by the Get method. Validation checks that the List method results items reference the same schema as the Get method response.<br/> - Validation applies to List methods for resource collections only<br/> - Validation applies to json response content only<br/> - Validation ignores responses without schema and non-paginated responses<br/> - Validation ignores resources without a Get method<br/> - Paths with `x-xgen-IPA-exception` for this rule are excluded from validation<br/> http://go/ipa/105
113+
The response body of the List method should consist of the same resource object returned by the Get method. http://go/ipa/105
114+
##### Implementation details
115+
Validation checks that the List method response contains items property with reference to the same schema as the Get method response.
116+
- Validation applies to List methods for resource collections only - Validation applies to json response content only - Validation ignores responses without schema and non-paginated responses - Validation ignores resources without a Get method - Paths with `x-xgen-IPA-exception` for this rule are excluded from validation
114117

115118

116119

0 commit comments

Comments
 (0)