Skip to content

Commit df8dbcd

Browse files
authored
CLOUDP 329982: Documentation changes to public IPA links (#818)
1 parent 9a2a9aa commit df8dbcd

26 files changed

+49
-49
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ The [tools/cli](tools/cli) directory hosts a Go-based CLI tool used to merge mul
1515
For more details, please refer to the [CLI’s README.md](tools/cli/README.md).
1616

1717
### Spectral
18-
The [tools/spectral](tools/spectral) directory contains MongoDB-specific [Spectral](https://github.com/stoplightio/spectral) rule definitions.
19-
These rules are used to validate that the generated OpenAPI specifications comply with MongoDB’s guidelines.
18+
The [tools/spectral](tools/spectral) directory contains [Spectral](https://github.com/stoplightio/spectral) rule definitions.
19+
These rules are used to validate that the generated OpenAPI specifications comply with MongoDB's [Improvement Proposal for APIs](https://mongodb.github.io/ipa/) (IPA).
2020

2121
For more details, please refer to the [Spectral’s README.md](tools/spectral/README.md).
2222

tools/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Includes resources and scripts to generate [MongoDB Atlas Postman Collections](h
88

99
## Spectral
1010

11-
MongoDB [Spectral](https://github.com/stoplightio/spectral) OpenAPI specification validation rules
11+
MongoDB [Spectral](https://github.com/stoplightio/spectral) OpenAPI specification validation rules for IPA-compliance.
1212

1313
## CLI
1414

tools/spectral/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ A set of custom validator rules for the MongoDB Atlas Programmatic API, adhering
1010

1111
For a complete list of implemented rules, please refer to the [Ruleset Documentation](./ipa/rulesets/README.md).
1212

13+
### External Documentation
14+
15+
- Refer to the [IPA Standards](https://mongodb.github.io/ipa/) for specific rules.
16+
1317
### Internal Documentation
1418

15-
- Refer to the [IPA Standards](http://go/ipa) for specific rules.
1619
- Visit the [Spectral Wiki](http://go/openapi-spectral-updates) for additional information.

tools/spectral/ipa/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# IPA Validation
22

3-
The IPA validation uses [Spectral](https://docs.stoplight.io/docs/spectral/9ffa04e052cc1-spectral-cli) to validate the [MongoDB Atlas Admin API OpenAPI Specification](https://github.com/mongodb/openapi/tree/main/openapi). The rules cover MongoDB best-practices for API design.
4-
5-
**Note:** For MongoDB engineers, please review https://go/ipa-validation for additional information.
3+
The IPA validation uses [Spectral](https://docs.stoplight.io/docs/spectral/9ffa04e052cc1-spectral-cli) to validate the [MongoDB Atlas Admin API OpenAPI Specification](https://github.com/mongodb/openapi/tree/main/openapi). The rules cover MongoDB's [Improvement Proposal for APIs](https://mongodb.github.io/ipa/) (IPA), which are best-practices for API design.
64

75
## Running Locally
86

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# IPA-5: Documenting Exceptions to IPAs
2-
# http://go/ipa/5
2+
# https://mongodb.github.io/ipa/5
33

44
functions:
55
- IPA005ExceptionExtensionFormat

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# IPA-102: Resource Identifiers
2-
# http://go/ipa/102
2+
# https://mongodb.github.io/ipa/102
33

44
rules:
55
xgen-IPA-102-collection-identifier-camelCase:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# IPA-104: Get
2-
# http://go/ipa/104
2+
# https://mongodb.github.io/ipa/104
33

44
functions:
55
- IPA104EachResourceHasGetMethod

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# IPA-105: List
2-
# http://go/ipa/105
2+
# https://mongodb.github.io/ipa/105
33

44
functions:
55
- IPA105ListResponseCodeShouldBe200OK

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# IPA-106: Create
2-
# https://mdb.link/mongodb-atlas-openapi-validation#
2+
# https://mongodb.github.io/ipa/106
33

44
functions:
55
- IPA106CreateMethodRequestBodyIsRequestSuffixedObject

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# IPA-107: Update
2-
# http://go/ipa/107
2+
# https://mongodb.github.io/ipa/107
33

44
functions:
55
- IPA107UpdateMethodMustNotHaveQueryParams

0 commit comments

Comments
 (0)