Skip to content

Commit dfec22d

Browse files
docs: update docs
1 parent 7d50c71 commit dfec22d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ rules:
6464
- Inline schema properties for operation object requests and responses
6565
- Parameter objects (in operations and components)
6666
- Schema properties
67+
- Schemas
6768
message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-117-description-starts-with-uppercase'
6869
severity: error
6970
given:
@@ -83,6 +84,7 @@ rules:
8384
- Inline schema properties for operation object requests and responses
8485
- Parameter objects (in operations and components)
8586
- Schema properties
87+
- Schemas
8688
The rule ignores descriptions that end with `|`, i.e. inline markdown tables
8789
message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-117-description-ends-with-period'
8890
severity: error
@@ -103,6 +105,7 @@ rules:
103105
- Inline schema properties for operation object requests and responses
104106
- Parameter objects (in operations and components)
105107
- Schema properties
108+
- Schemas
106109
The rule validates that the description content does not include opening and/or closing HTML tags.
107110
message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-117-description-must-not-use-html'
108111
severity: error
@@ -123,6 +126,7 @@ rules:
123126
- Inline schema properties for operation object requests and responses
124127
- Parameter objects (in operations and components)
125128
- Schema properties
129+
- Schemas
126130
The rule validates that the description content does not include inline markdown tables.
127131
message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-117-description-should-not-use-inline-tables'
128132
severity: error
@@ -142,6 +146,7 @@ rules:
142146
- Inline schema properties for operation object requests and responses
143147
- Parameter objects (in operations and components)
144148
- Schema properties
149+
- Schemas
145150
The rule validates that the description content does not include inline markdown links. The rule ignores HTML `<a>` links - this is covered by `xgen-IPA-117-description-must-not-use-html`.
146151
message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-117-description-should-not-use-inline-links'
147152
severity: error

tools/spectral/ipa/rulesets/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ Rule checks the format of the description property in the following components:
741741
- Inline schema properties for operation object requests and responses
742742
- Parameter objects (in operations and components)
743743
- Schema properties
744+
- Schemas
744745

745746
#### xgen-IPA-117-description-ends-with-period
746747

@@ -755,6 +756,7 @@ Rule checks the format of the description property in the following components:
755756
- Inline schema properties for operation object requests and responses
756757
- Parameter objects (in operations and components)
757758
- Schema properties
759+
- Schemas
758760
The rule ignores descriptions that end with `|`, i.e. inline markdown tables
759761

760762
#### xgen-IPA-117-description-must-not-use-html
@@ -770,6 +772,7 @@ Rule checks the format of the descriptions for components:
770772
- Inline schema properties for operation object requests and responses
771773
- Parameter objects (in operations and components)
772774
- Schema properties
775+
- Schemas
773776
The rule validates that the description content does not include opening and/or closing HTML tags.
774777

775778
#### xgen-IPA-117-description-should-not-use-inline-tables
@@ -785,6 +788,7 @@ Rule checks the format of the descriptions for components:
785788
- Inline schema properties for operation object requests and responses
786789
- Parameter objects (in operations and components)
787790
- Schema properties
791+
- Schemas
788792
The rule validates that the description content does not include inline markdown tables.
789793

790794
#### xgen-IPA-117-description-should-not-use-inline-links
@@ -799,6 +803,7 @@ Rule checks the format of the descriptions for components:
799803
- Inline schema properties for operation object requests and responses
800804
- Parameter objects (in operations and components)
801805
- Schema properties
806+
- Schemas
802807
The rule validates that the description content does not include inline markdown links. The rule ignores HTML `<a>` links - this is covered by `xgen-IPA-117-description-must-not-use-html`.
803808

804809
#### xgen-IPA-117-plaintext-response-must-have-example

0 commit comments

Comments
 (0)