Skip to content

Commit db2886f

Browse files
Merge branch 'main' into fix-ipa-rule-test-severity
2 parents 09c354a + c4bc0af commit db2886f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ rules:
3636
This is valid because there are exactly 2 mappings for 2 oneOf references, and all values match.
3737
3838
message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-125-oneOf-must-have-discriminator'
39-
severity: error
39+
severity: warn
4040
given: '$.components.schemas[*]'
4141
then:
4242
function: 'IPA125OneOfMustHaveDiscriminator'
@@ -84,7 +84,7 @@ rules:
8484
```
8585
8686
message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-125-oneOf-no-base-types'
87-
severity: error
87+
severity: warn
8888
given: '$.components.schemas[*]'
8989
then:
9090
function: 'IPA125OneOfNoBaseTypes'

tools/spectral/ipa/rulesets/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ Rules are based on [http://go/ipa/IPA-125](http://go/ipa/IPA-125).
508508

509509
#### xgen-IPA-125-oneOf-must-have-discriminator
510510

511-
![error](https://img.shields.io/badge/error-red)
511+
![warn](https://img.shields.io/badge/warning-yellow)
512512
Each oneOf property must include a discriminator property to define the exact type.
513513

514514
##### Implementation details
@@ -538,7 +538,7 @@ Rule checks for the following conditions:
538538
539539
#### xgen-IPA-125-oneOf-no-base-types
540540
541-
![error](https://img.shields.io/badge/error-red)
541+
![warn](https://img.shields.io/badge/warning-yellow)
542542
API producers should not use oneOf with base types like integer, string, boolean, or number.
543543
544544
##### Implementation details

0 commit comments

Comments
 (0)