Skip to content

Commit 372d11c

Browse files
Fix: Degrade severity level for IPA-125 rules
1 parent 8411c91 commit 372d11c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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'

0 commit comments

Comments
 (0)