Skip to content

Commit 69893be

Browse files
CLOUDP-301224: Add readme
1 parent 19ddd1a commit 69893be

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!--- NOTE: This README file is generated, please see /scripts/generateRulesetReadme.js --->
2+
3+
# IPA Validation Rules
4+
5+
All Spectral rules used in the IPA validation are defined in rulesets grouped by IPA number (`IPA-XXX.yaml`). These rulesets are imported into the main IPA ruleset [ipa-spectral.yaml](https://github.com/mongodb/openapi/blob/main/tools/spectral/ipa/ipa-spectral.yaml) which is used for running the validation.
6+
7+
## Rulesets
8+
9+
The tables below lists all available rules, their descriptions and severity level.
10+
11+
### IPA-005
12+
13+
| Rule Name | Description | Severity |
14+
| --------------------------------------- | ------------------------------------------------------------------------ | -------- |
15+
| xgen-IPA-005-exception-extension-format | IPA exception extensions must follow the correct format. http://go/ipa/5 | warn |
16+
17+
### IPA-102
18+
19+
| Rule Name | Description | Severity |
20+
| ---------------------------------------------------- | -------------------------------------------------------------------------------- | -------- |
21+
| xgen-IPA-102-path-alternate-resource-name-path-param | Paths should alternate between resource names and path params. http://go/ipa/102 | warn |
22+
23+
### IPA-104
24+
25+
| Rule Name | Description | Severity |
26+
| ----------------------------- | --------------------------------------------------------------- | -------- |
27+
| xgen-IPA-104-resource-has-GET | APIs must provide a get method for resources. http://go/ipa/104 | warn |
28+
29+
### IPA-109
30+
31+
| Rule Name | Description | Severity |
32+
| ---------------------------------------------- | ------------------------------------------------------------------------- | -------- |
33+
| xgen-IPA-109-custom-method-must-be-GET-or-POST | The HTTP method for custom methods must be GET or POST. http://go/ipa/109 | warn |
34+
| xgen-IPA-109-custom-method-must-use-camel-case | The custom method must use camelCase format. http://go/ipa/109 | warn |
35+
36+
### IPA-113
37+
38+
| Rule Name | Description | Severity |
39+
| --------------------------------------- | ------------------------------------------------------------------------------------------- | -------- |
40+
| xgen-IPA-113-singleton-must-not-have-id | Singleton resources must not have a user-provided or system-generated ID. http://go/ipa/113 | warn |
41+
42+
### IPA-123
43+
44+
| Rule Name | Description | Severity |
45+
| ------------------------------------------------- | ------------------------------------------------------- | -------- |
46+
| xgen-IPA-123-enum-values-must-be-upper-snake-case | Enum values must be UPPER_SNAKE_CASE. http://go/ipa/123 | warn |
47+
48+

0 commit comments

Comments
 (0)